ir3: Consider dst type in ubo_vec4 to ldc lowering
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Tue, 14 Feb 2023 18:24:59 +0000 (19:24 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 15 Feb 2023 09:49:39 +0000 (09:49 +0000)
commitb7ab83d59fd44f8a2120874818fd0c09031aa635
tree633eeb471e384e9f55fea81583c06126572ecefa
parente089166776d90634d7b384b4b279ee7ce1930318
ir3: Consider dst type in ubo_vec4 to ldc lowering

The dst type could be either 16b or 32b.

Fixes validation failure in dEQP-VK.subgroups.* tests which deal with
16b types.

 validation fail: (type_size(instr->cat6.type) <= 16) == !!((instr->dsts[0])->flags & IR3_REG_HALF)
   -> for instruction: MESA: info: 0023:0000:000:        ldc.offset0.base0 hssa_23 (wrmask=0x3), ssa_1, ssa_22

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21316>
src/freedreno/ir3/ir3_compiler_nir.c