diff options
author | Eric Engestrom <[email protected]> | 2017-11-27 13:46:43 +0000 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-11-28 15:23:16 -0800 |
commit | 07d396669400fc799543dd790583ebe77b71c3a8 (patch) | |
tree | 5b7fe39133a1da436c85804a0d667b688fbe1bd7 /src/mesa | |
parent | 760e0156dfd5cf0281bc964a8090c792fc44ab16 (diff) |
i965: const a few structs and vars to avoid writing to them by accident
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/genX_state_upload.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/genX_state_upload.c b/src/mesa/drivers/dri/i965/genX_state_upload.c index 2808363e3ad..c0b2ea08238 100644 --- a/src/mesa/drivers/dri/i965/genX_state_upload.c +++ b/src/mesa/drivers/dri/i965/genX_state_upload.c @@ -4289,16 +4289,16 @@ static const struct brw_tracked_state genX(cs_state) = { static void genX(upload_raster)(struct brw_context *brw) { - struct gl_context *ctx = &brw->ctx; + const struct gl_context *ctx = &brw->ctx; /* _NEW_BUFFERS */ - bool render_to_fbo = _mesa_is_user_fbo(ctx->DrawBuffer); + const bool render_to_fbo = _mesa_is_user_fbo(ctx->DrawBuffer); /* _NEW_POLYGON */ - struct gl_polygon_attrib *polygon = &ctx->Polygon; + const struct gl_polygon_attrib *polygon = &ctx->Polygon; /* _NEW_POINT */ - struct gl_point_attrib *point = &ctx->Point; + const struct gl_point_attrib *point = &ctx->Point; brw_batch_emit(brw, GENX(3DSTATE_RASTER), raster) { if (brw->polygon_front_bit == render_to_fbo) |