ac/nir: for ubo load use correct num_components
authorDave Airlie <airlied@redhat.com>
Tue, 31 Oct 2017 01:29:54 +0000 (11:29 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 7 Nov 2017 04:54:19 +0000 (14:54 +1000)
commit0084f4a42290ab54c185c9284a5670d4da4fc66e
tree01ba0fa90b6e32f59540347443045b6c72e720fc
parentfb87c40a58ac8fd8518c9a8e39da13385dd10978
ac/nir: for ubo load use correct num_components

I was hacking something stupid in doom, and hit an assert for the bitcast
following this, it definitely looks like this should be the number of 32-bit
components, not the instr level ones.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c