diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index e9597b90844..b2fbedbadee 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -214,6 +214,11 @@ struct intel_perf_query_result; #define ANV_GRAPHICS_SHADER_STAGE_COUNT (MESA_SHADER_MESH + 1) +/* RENDER_SURFACE_STATE is a bit smaller (48b) but since it is aligned to 64 + * and we can't put anything else there we use 64b. + */ +#define ANV_SURFACE_STATE_SIZE (64) + /* For gfx12 we set the streamout buffers using 4 separate commands * (3DSTATE_SO_BUFFER_INDEX_*) instead of 3DSTATE_SO_BUFFER. However the layout * of the 3DSTATE_SO_BUFFER_INDEX_* commands is identical to that of @@ -1600,6 +1605,10 @@ struct anv_vue_header { float PointWidth; }; +struct anv_surface_state_data { + uint8_t data[ANV_SURFACE_STATE_SIZE]; +}; + /** Struct representing a sampled image descriptor * * This descriptor layout is used for sampled images, bare sampler, and