diff options
author | Paul Berry <[email protected]> | 2014-01-10 13:00:51 -0800 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2014-09-01 19:38:27 -0700 |
commit | 88e3d404dad009d8cff5124cf8acee7daeaceb64 (patch) | |
tree | 73b0ebeeefb8851e2810f123e04b28c805f05a63 /src/mesa/drivers/dri/i965/gen6_sol.c | |
parent | 94a909ec2df779bfdac6f42a25077b427b3873ea (diff) |
i965: Create a macro for setting a dirty bit.
This will make it easier to extend dirty bit handling to support
compute shaders.
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen6_sol.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen6_sol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_sol.c b/src/mesa/drivers/dri/i965/gen6_sol.c index e1c1b3cb060..689b68f2f33 100644 --- a/src/mesa/drivers/dri/i965/gen6_sol.c +++ b/src/mesa/drivers/dri/i965/gen6_sol.c @@ -65,7 +65,7 @@ gen6_update_sol_surfaces(struct brw_context *brw) } } - brw->state.dirty.brw |= BRW_NEW_SURFACES; + SET_DIRTY_BIT(brw, BRW_NEW_SURFACES); } const struct brw_tracked_state gen6_sol_surface = { @@ -103,7 +103,7 @@ brw_gs_upload_binding_table(struct brw_context *brw) /* Skip making a binding table if we don't have anything to put in it. */ if (!has_surfaces) { if (brw->ff_gs.bind_bo_offset != 0) { - brw->state.dirty.brw |= BRW_NEW_GS_BINDING_TABLE; + SET_DIRTY_BIT(brw, BRW_NEW_GS_BINDING_TABLE); brw->ff_gs.bind_bo_offset = 0; } return; @@ -119,7 +119,7 @@ brw_gs_upload_binding_table(struct brw_context *brw) /* BRW_NEW_SURFACES */ memcpy(bind, brw->ff_gs.surf_offset, BRW_MAX_GEN6_GS_SURFACES * sizeof(uint32_t)); - brw->state.dirty.brw |= BRW_NEW_GS_BINDING_TABLE; + SET_DIRTY_BIT(brw, BRW_NEW_GS_BINDING_TABLE); } const struct brw_tracked_state gen6_gs_binding_table = { |