gallivm: fix transpose for when first channel isn't created
authorDave Airlie <airlied@redhat.com>
Tue, 3 Dec 2019 03:41:56 +0000 (13:41 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 11 Dec 2019 23:16:28 +0000 (09:16 +1000)
commitbf2904010341e31d0d66954fcbd88da4da4e1cdd
tree6bd7256781abade95ec58d564014b1109720d68f
parente35b2c37cd2c419ae92308cda49cc02fab823f8a
gallivm: fix transpose for when first channel isn't created

The previous fix worked when the second channel wasn't exposed, but
a couple of piglit tests have inputs with just the y/z chans, no x/w.

Partly Fixes piglit ext_transform_feedback-immediate-reuse-index-buffer
with llvmpipe/nir

Fixes: 5363cda52b84 ("gallivm: add swizzle support where one channel isn't defined.")
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_swizzle.c