ac/llvm: move culling replaced registers to abi
For RADV/Radeonsi llvm backend to use correct value after culling. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17455>
This commit is contained in:
@@ -49,6 +49,14 @@ struct ac_shader_abi {
|
||||
LLVMValueRef color0, color1;
|
||||
LLVMValueRef user_data;
|
||||
|
||||
/* replaced registers when culling enabled */
|
||||
LLVMValueRef vertex_id_replaced;
|
||||
LLVMValueRef instance_id_replaced;
|
||||
LLVMValueRef tes_u_replaced;
|
||||
LLVMValueRef tes_v_replaced;
|
||||
LLVMValueRef tes_rel_patch_id_replaced;
|
||||
LLVMValueRef tes_patch_id_replaced;
|
||||
|
||||
/* Varying -> attribute number mapping. Also NIR-only */
|
||||
unsigned fs_input_attr_indices[MAX_VARYING];
|
||||
|
||||
|
Reference in New Issue
Block a user