summaryrefslogtreecommitdiffstats
path: root/src/vulkan/private.h
diff options
context:
space:
mode:
authorKristian Høgsberg Kristensen <[email protected]>2015-06-12 17:21:01 -0700
committerKristian Høgsberg Kristensen <[email protected]>2015-06-12 18:21:50 -0700
commitfa8a07748d96525b208146065b5264821a9ef338 (patch)
treec50f03f08be45341f5f32f0da521e92192d7e9ca /src/vulkan/private.h
parentc103c4990c9a647891ed3ee1667c129ee3e16996 (diff)
vk: Compute CS exec mask and thread width max in pipeline
We compute the right mask and thread width max parameters as part of pipeline creation and set them accordingly at vkCmdDispatch() and vkCmdDispatchIndirect() time. These parameters depend only on the local group size and the dispatch width of the program so we can figure this out at pipeline create time.
Diffstat (limited to 'src/vulkan/private.h')
-rw-r--r--src/vulkan/private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vulkan/private.h b/src/vulkan/private.h
index cf1cf4c1268..08dea1526e8 100644
--- a/src/vulkan/private.h
+++ b/src/vulkan/private.h
@@ -726,6 +726,9 @@ struct anv_pipeline {
uint32_t state_sf[GEN8_3DSTATE_SF_length];
uint32_t state_raster[GEN8_3DSTATE_RASTER_length];
uint32_t state_wm_depth_stencil[GEN8_3DSTATE_WM_DEPTH_STENCIL_length];
+
+ uint32_t cs_thread_width_max;
+ uint32_t cs_right_mask;
};
struct anv_pipeline_create_info {