virgl: drop const dimensions on first block.
authorDave Airlie <airlied@redhat.com>
Tue, 12 Sep 2017 23:23:15 +0000 (09:23 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 15 Sep 2017 00:33:14 +0000 (10:33 +1000)
commitb6f6ead198c51e2144c5e880007e2f0a6ffcad3a
treeaec045a5525dc4337b43a46753d710c487394a3d
parenta7a7bf21bdf0cf8e59f8c8e17c2580a363be7055
virgl: drop const dimensions on first block.

The virgl protocol version of tgsi doesn't handle this yet,
transform it back to the old ways.

Thanks to Nicolai Hähnle <nicolai.haehnle@amd.com>
for also writing nearly the same patch.

Fixes: 41e342d5 tgsi/ureg: always emit constants (and their decls) as 2D
Tested-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/virgl/virgl_tgsi.c