pan/bi: Account for bool32 ld_ubo reads

Fixes crash in sway.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206>
This commit is contained in:
Alyssa Rosenzweig 2020-10-22 10:58:04 -04:00 committed by Marge Bot
parent 3cdca1514f
commit 56f90a6ac1
1 changed files with 4 additions and 2 deletions

View File

@ -401,7 +401,8 @@ bi_pack_fma(bi_clause *clause, bi_bundle bundle, bi_registers *regs)
bool f16 = bundle.fma->dest_type == nir_type_float16;
bool f32 = bundle.fma->dest_type == nir_type_float32;
bool u32 = bundle.fma->dest_type == nir_type_uint32;
bool u32 = bundle.fma->dest_type == nir_type_uint32 ||
bundle.fma->dest_type == nir_type_bool32;
bool u16 = bundle.fma->dest_type == nir_type_uint16;
ASSERTED bool u8 = bundle.fma->dest_type == nir_type_uint8;
bool s32 = bundle.fma->dest_type == nir_type_int32;
@ -664,7 +665,8 @@ bi_pack_add(bi_clause *clause, bi_bundle bundle, bi_registers *regs, gl_shader_s
bool f16 = bundle.add->dest_type == nir_type_float16;
bool f32 = bundle.add->dest_type == nir_type_float32;
bool u32 = bundle.add->dest_type == nir_type_uint32;
bool u32 = bundle.add->dest_type == nir_type_uint32 ||
bundle.add->dest_type == nir_type_bool32;
bool u16 = bundle.add->dest_type == nir_type_uint16;
bool s32 = bundle.add->dest_type == nir_type_int32;
bool s16 = bundle.add->dest_type == nir_type_int16;