diff options
author | Paul Berry <[email protected]> | 2014-01-10 21:39:25 -0800 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2015-05-02 00:34:28 -0700 |
commit | 6ee4dac1ef7db88b1fd5b27b215fb8baa7bc9c66 (patch) | |
tree | 8a8cc4c9c8333839558981829f0efd04aeaa0c69 /src/mesa/drivers/dri/i965/brw_context.h | |
parent | 02e9773bc8526f64e4d79e3d9ac11f49882c022f (diff) |
i965/cs: Add BRW_NEW_COMPUTE_PROGRAM state flag.
Also add code to brw_upload_state to set it when the compute program
changes.
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index e2f26f5b2d4..bd253efb3e2 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -209,6 +209,7 @@ enum brw_state_id { BRW_STATE_CLIP_VP, BRW_STATE_SAMPLER_STATE_TABLE, BRW_STATE_VS_ATTRIB_WORKAROUNDS, + BRW_STATE_COMPUTE_PROGRAM, BRW_NUM_STATE_BITS }; @@ -288,6 +289,7 @@ enum brw_state_id { #define BRW_NEW_CLIP_VP (1ull << BRW_STATE_CLIP_VP) #define BRW_NEW_SAMPLER_STATE_TABLE (1ull << BRW_STATE_SAMPLER_STATE_TABLE) #define BRW_NEW_VS_ATTRIB_WORKAROUNDS (1ull << BRW_STATE_VS_ATTRIB_WORKAROUNDS) +#define BRW_NEW_COMPUTE_PROGRAM (1ull << BRW_STATE_COMPUTE_PROGRAM) struct brw_state_flags { /** State update flags signalled by mesa internals */ @@ -1205,6 +1207,7 @@ struct brw_context const struct gl_vertex_program *vertex_program; const struct gl_geometry_program *geometry_program; const struct gl_fragment_program *fragment_program; + const struct gl_compute_program *compute_program; /** * Number of samples in ctx->DrawBuffer, updated by BRW_NEW_NUM_SAMPLES so |