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:

committed by
Marge Bot

parent
632e1b66f5
commit
b7eda568a4
@@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user