Skip to content
Snippets Groups Projects
Commit b7eda568 authored by Mike Blumenkrantz's avatar Mike Blumenkrantz :lifter: Committed by Marge Bot
Browse files

nir/validate: clamp unsized tex dests to 32bit


this is the "default" size that's expected

cc: mesa-stable

Reviewed-by: default avatarJason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <mesa/mesa!17874>
parent 632e1b66
No related branches found
No related tags found
No related merge requests found
......@@ -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));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment