r600: fix not-very indirect compute
authorDave Airlie <airlied@redhat.com>
Sun, 4 Feb 2018 23:07:54 +0000 (09:07 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 6 Feb 2018 20:08:12 +0000 (06:08 +1000)
commit5fd7b282b35c0d81c27d8af654ee58073f0acb58
treef999dc2cae6d1ff87c0f37f448e7bee3f1aa8d7d
parent00a112641b6c9a401079fbe5e61f4befe636876e
r600: fix not-very indirect compute

We need to get the grid sizes earlier to fill in to the const
buffer.

Fixes:
KHR-GL45.compute_shader.built-in-variables
and
KHR-GL45.compute_shader.dispatch-indirect

Reviewed-by: Roland Scheidegger <sorland@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/evergreen_compute.c