mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 10:30:08 +01:00
r600/sfn: Set unnormalized flag for z-coordinate when fetching from array
It shouldn't be relewant for fetch, but the TGSI code path does it, so let's do it here as well. Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8800>
This commit is contained in:
parent
80200c75e0
commit
fd6c95a1b1
1 changed files with 4 additions and 0 deletions
|
|
@ -516,6 +516,9 @@ bool EmitTexInstruction::emit_tex_txf(nir_tex_instr* instr, TexInputs& src)
|
|||
ir->set_flag(alu_last_instr);
|
||||
}
|
||||
|
||||
if (instr->is_array)
|
||||
tex_ir->set_flag(TexInstruction::z_unnormalized);
|
||||
|
||||
emit_instruction(tex_ir);
|
||||
return true;
|
||||
}
|
||||
|
|
@ -532,6 +535,7 @@ bool EmitTexInstruction::emit_tex_lod(nir_tex_instr* instr, TexInputs& src)
|
|||
sampler.id + R600_MAX_CONST_BUFFERS, src.sampler_offset);
|
||||
irt->set_dest_swizzle({1,0,7,7});
|
||||
emit_instruction(irt);
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue