radv: trim buffer load result (fixes dota2)
authorDave Airlie <airlied@redhat.com>
Thu, 11 Jan 2018 02:10:23 +0000 (02:10 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 12 Jan 2018 00:41:55 +0000 (00:41 +0000)
commite37db93246d8251e2c0b366c08f23c9de756208e
tree93d2cb00afe06e99321b5fefdd26c8bdcc564b0c
parentaca3b647bedd581c6d0b428f9f5d58a65048f869
radv: trim buffer load result (fixes dota2)

Running dota2 since the below commit crashes with an llvm assert.

Trim the vector like the other user. This possible could also be
avoided by not padding inside the load vec3->vec4.

Fixes: 41c36c4549 (amd/common: use ac_build_buffer_load() for emitting UBO loads)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c