mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-27 15:20:37 +02:00
llvmpipe: add a few const qualifiers
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
6d551f9ea3
commit
71dcc067a5
3 changed files with 4 additions and 4 deletions
|
|
@ -169,8 +169,8 @@ struct lp_setup_context
|
|||
};
|
||||
|
||||
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);
|
||||
|
|
|
|||
|
|
@ -719,7 +719,7 @@ try_setup_line( struct lp_setup_context *setup,
|
|||
*/
|
||||
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);
|
||||
|
|
|
|||
|
|
@ -681,7 +681,7 @@ do_triangle_ccw(struct lp_setup_context *setup,
|
|||
*/
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue