ac: make ac_shader_abi::inputs an array instead of a pointer
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12570>
This commit is contained in:
@@ -50,6 +50,7 @@ enum ac_descriptor_type
|
||||
*/
|
||||
struct ac_shader_abi {
|
||||
LLVMValueRef outputs[AC_LLVM_MAX_OUTPUTS * 4];
|
||||
LLVMValueRef inputs[AC_LLVM_MAX_OUTPUTS * 4];
|
||||
|
||||
/* These input registers sometimes need to be fixed up. */
|
||||
LLVMValueRef vertex_id;
|
||||
@@ -58,13 +59,6 @@ struct ac_shader_abi {
|
||||
LLVMValueRef color0, color1;
|
||||
LLVMValueRef user_data;
|
||||
|
||||
/* For VS and PS: pre-loaded shader inputs.
|
||||
*
|
||||
* Currently only used for NIR shaders; indexed by variables'
|
||||
* driver_location.
|
||||
*/
|
||||
LLVMValueRef *inputs;
|
||||
|
||||
/* Varying -> attribute number mapping. Also NIR-only */
|
||||
unsigned fs_input_attr_indices[MAX_VARYING];
|
||||
|
||||
|
Reference in New Issue
Block a user