mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
svga: Make declaration of emit_input_declaration match definition
Pointed out by GCC 13:
../src/gallium/drivers/svga/svga_tgsi_vgpu10.c:3786:1: warning: conflicting types for ‘emit_input_declaration’ due to enum/integer mismatch; have ‘void(struct svga_shader_emitter_v10 *, VGPU10_OPCODE_TYPE, VGPU10_OPERAND_TYPE, VGPU10_OPERAND_INDEX_DIMENSION, unsigned int, unsigned int, VGPU10_SYSTEM_NAME, VGPU10_OPERAND_NUM_COMPONENTS, VGPU10_OPERAND_4_COMPONENT_SELECTION_MODE, unsigned int, VGPU10_INTERPOLATION_MODE, boolean, SVGA3dDXSignatureSemanticName)’ {aka ‘void(struct svga_shader_emitter_v10 *, VGPU10_OPCODE_TYPE, VGPU10_OPERAND_TYPE, VGPU10_OPERAND_INDEX_DIMENSION, unsigned int, unsigned int, VGPU10_SYSTEM_NAME, VGPU10_OPERAND_NUM_COMPONENTS, VGPU10_OPERAND_4_COMPONENT_SELECTION_MODE, unsigned int, VGPU10_INTERPOLATION_MODE, unsigned char, unsigned int)’} [-Wenum-int-mismatch]
3786 | emit_input_declaration(struct svga_shader_emitter_v10 *emit,
| ^~~~~~~~~~~~~~~~~~~~~~
../src/gallium/drivers/svga/svga_tgsi_vgpu10.c:516:1: note: previous declaration of ‘emit_input_declaration’ with type ‘void(struct svga_shader_emitter_v10 *, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, boolean, SVGA3dDXSignatureSemanticName)’ {aka ‘void(struct svga_shader_emitter_v10 *, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned char, unsigned int)’}
516 | emit_input_declaration(struct svga_shader_emitter_v10 *emit,
| ^~~~~~~~~~~~~~~~~~~~~~
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22718>
(cherry picked from commit 6bab67f5a6)
This commit is contained in:
parent
e363ab4607
commit
fc4592aef5
2 changed files with 10 additions and 6 deletions
|
|
@ -1516,7 +1516,7 @@
|
|||
"description": "svga: Make declaration of emit_input_declaration match definition",
|
||||
"nominated": false,
|
||||
"nomination_type": null,
|
||||
"resolution": 4,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -514,11 +514,15 @@ emit_vgpu10_instruction(struct svga_shader_emitter_v10 *emit,
|
|||
|
||||
static void
|
||||
emit_input_declaration(struct svga_shader_emitter_v10 *emit,
|
||||
unsigned opcodeType, unsigned operandType,
|
||||
unsigned dim, unsigned index, unsigned size,
|
||||
unsigned name, unsigned numComp,
|
||||
unsigned selMode, unsigned usageMask,
|
||||
unsigned interpMode,
|
||||
VGPU10_OPCODE_TYPE opcodeType,
|
||||
VGPU10_OPERAND_TYPE operandType,
|
||||
VGPU10_OPERAND_INDEX_DIMENSION dim,
|
||||
unsigned index, unsigned size,
|
||||
VGPU10_SYSTEM_NAME name,
|
||||
VGPU10_OPERAND_NUM_COMPONENTS numComp,
|
||||
VGPU10_OPERAND_4_COMPONENT_SELECTION_MODE selMode,
|
||||
unsigned usageMask,
|
||||
VGPU10_INTERPOLATION_MODE interpMode,
|
||||
boolean addSignature,
|
||||
SVGA3dDXSignatureSemanticName sgnName);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue