mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
nir/validate: clamp unsized tex dests to 32bit
this is the "default" size that's expected cc: mesa-stable Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17874>
This commit is contained in:
parent
632e1b66f5
commit
b7eda568a4
1 changed files with 2 additions and 1 deletions
|
|
@ -938,8 +938,9 @@ validate_tex_instr(nir_tex_instr *instr, validate_state *state)
|
|||
|
||||
validate_dest(&instr->dest, state, 0, nir_tex_instr_dest_size(instr));
|
||||
|
||||
unsigned bit_size = nir_alu_type_get_type_size(instr->dest_type);
|
||||
validate_assert(state,
|
||||
nir_alu_type_get_type_size(instr->dest_type) ==
|
||||
(bit_size ? bit_size : 32) ==
|
||||
nir_dest_bit_size(instr->dest));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue