Fixes:
dEQP-VK.glsl.texture_functions.query.texturesamples.sampler2dms_fixed_vertex
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3989>
struct ir3_register *src2;
instr_cat5_t *cat5 = ptr;
- iassert((instr->regs_count == 2) ||
+ iassert((instr->regs_count == 1) ||
+ (instr->regs_count == 2) ||
(instr->regs_count == 3) ||
(instr->regs_count == 4));
src1 = instr->regs[2];
src2 = instr->regs_count > 3 ? instr->regs[3] : NULL;
} else {
- src1 = instr->regs[1];
+ src1 = instr->regs_count > 1 ? instr->regs[1] : NULL;
src2 = instr->regs_count > 2 ? instr->regs[2] : NULL;
}