radeonsi/nir: Remove uniform variable scanning
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 27 Aug 2019 11:36:11 +0000 (13:36 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Tue, 3 Sep 2019 13:55:02 +0000 (15:55 +0200)
commitf3e978db4dbaaf6e96c3020bdaa719a2b3f17049
treecd043f80bbb749e9fe906cf83f5f6eb0e1d10ecf
parent96c2a2832fa6807534387ed46f8e6e124c5c72cf
radeonsi/nir: Remove uniform variable scanning

We can get all the information we need from NIR. It's slightly less
accurate, but radeonsi doesn't use the extra information. The old code
also overcounted atomic counters, which led to problems when everything
was used at once.

Fixes KHR-GL45.compute_shader.resources-max.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader_nir.c