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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user