mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
nv/codegen: Fix an uninitialized variable warning
The warning was actually a false positibe, but CI failed with: error: 'nvirOp' may be used uninitialized [-Werror=maybe-uninitialized] Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24791>
This commit is contained in:
parent
a28ff7f240
commit
f4ba2fdd73
1 changed files with 1 additions and 1 deletions
|
|
@ -1731,7 +1731,7 @@ Converter::visit(nir_intrinsic_instr *insn)
|
|||
const DataType dType = getDType(insn);
|
||||
Value *indirect;
|
||||
bool input = op != nir_intrinsic_load_output;
|
||||
operation nvirOp;
|
||||
operation nvirOp = OP_LAST;
|
||||
uint32_t mode = 0;
|
||||
|
||||
uint32_t idx = getIndirect(insn, op == nir_intrinsic_load_interpolated_input ? 1 : 0, 0, indirect);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue