Reviewed-by: Roland Scheidegger <sroland@vmware.com>
};
static inline void
-scissor_planes_needed(boolean scis_planes[4], struct u_rect *bbox,
- struct u_rect *scissor)
+scissor_planes_needed(boolean scis_planes[4], const struct u_rect *bbox,
+ const struct u_rect *scissor)
{
/* left */
scis_planes[0] = (bbox->x0 < scissor->x0);
*/
if (nr_planes > 4) {
/* why not just use draw_regions */
- struct u_rect *scissor = &setup->scissors[viewport_index];
+ const struct u_rect *scissor = &setup->scissors[viewport_index];
struct lp_rast_plane *plane_s = &plane[4];
boolean s_planes[4];
scissor_planes_needed(s_planes, &bbox, scissor);
*/
if (nr_planes > 3) {
/* why not just use draw_regions */
- struct u_rect *scissor = &setup->scissors[viewport_index];
+ const struct u_rect *scissor = &setup->scissors[viewport_index];
struct lp_rast_plane *plane_s = &plane[3];
boolean s_planes[4];
scissor_planes_needed(s_planes, &bbox, scissor);