mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
pan/mdg: fix src_type in instructions that need a implicit zero
We were incorrectly assuming uint32 for src_type[1] regardless of src_type[0]. Signed-off-by: Italo Nicola <italonicola@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5933>
This commit is contained in:
parent
75b1f3d39d
commit
b1b0ce04b3
1 changed files with 1 additions and 1 deletions
|
|
@ -1266,7 +1266,7 @@ emit_alu(compiler_context *ctx, nir_alu_instr *instr)
|
|||
/* Lots of instructions need a 0 plonked in */
|
||||
ins.has_inline_constant = false;
|
||||
ins.src[1] = SSA_FIXED_REGISTER(REGISTER_CONSTANT);
|
||||
ins.src_types[1] = nir_type_uint32;
|
||||
ins.src_types[1] = ins.src_types[0];
|
||||
ins.has_constants = true;
|
||||
ins.constants.u32[0] = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue