diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2020-03-03 15:42:33 -0800 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <[email protected]> | 2020-03-12 13:18:54 -0700 |
commit | 0a5053b687e7c9b69ecc743a770dff99952071b3 (patch) | |
tree | 1a5db8299ac0b5f37906d8552590dd85ca3ac637 /src/intel/vulkan/anv_private.h | |
parent | 925df46b7e00ee7ca4128ef2cc2f3fad68ce8d4e (diff) |
anv: Reduce compute pipeline batch_data size
The batch associated with the compute pipeline only needs room for a
MEDIA_VFE_STATE. So this patch moves the batch_data to each pipeline
struct and cap the one in compute pipeline.
Reviewed-by: Jason Ekstrand <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4040>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r-- | src/intel/vulkan/anv_private.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index defe44a3383..51e3845629b 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -3171,7 +3171,6 @@ struct anv_pipeline { struct anv_batch batch; struct anv_reloc_list batch_relocs; - uint32_t batch_data[512]; void * mem_ctx; @@ -3186,6 +3185,8 @@ struct anv_pipeline { struct anv_graphics_pipeline { struct anv_pipeline base; + uint32_t batch_data[512]; + anv_cmd_dirty_mask_t dynamic_state_mask; struct anv_dynamic_state dynamic_state; @@ -3238,6 +3239,7 @@ struct anv_compute_pipeline { struct anv_shader_bin * cs; uint32_t cs_right_mask; + uint32_t batch_data[9]; uint32_t interface_descriptor_data[8]; }; |