mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
pan/bi: Use bi_half() for texture MS indices
It feeds into a v2i16 so it needs to be 16-bit.
Fixes: ae79f6765a ("pan/bi: Emit Valhall texture instructions")
Reviewed-by: Lorenzo Rossi <lorenzo.rossi@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40720>
This commit is contained in:
parent
77f9cbd0c2
commit
e637130794
1 changed files with 2 additions and 1 deletions
|
|
@ -3762,7 +3762,8 @@ bi_emit_valhall_offsets(bi_builder *b, nir_tex_instr *instr)
|
|||
/* Component 2: multisample index */
|
||||
if (ms_idx >= 0 && (!nir_src_is_const(instr->src[ms_idx].src) ||
|
||||
nir_src_as_uint(instr->src[ms_idx].src) != 0)) {
|
||||
dest = bi_mkvec_v2i16(b, dest, bi_src_index(&instr->src[ms_idx].src));
|
||||
bi_index ms = bi_src_index(&instr->src[ms_idx].src);
|
||||
dest = bi_mkvec_v2i16(b, bi_half(dest, false), bi_half(ms, false));
|
||||
}
|
||||
|
||||
/* Component 3: 8-bit LOD */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue