anv: new structure to hold surface states
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21645>
This commit is contained in:
committed by
Marge Bot
parent
3f1ff326e0
commit
77c0146747
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user