nir: Fix num_ssbos when lowering atomic counters

Otherwise it's impossible to know the maximum SSBO index for both
internal TGSI shaders from TTN (which don't have any notion of atomic
counters and no offset) as well as shaders from GLSL.

I fixed everything I could find while grepping for num_ssbos and
num_abos, which hopefully is everything (iris was the only user I could
find that uses it in a meaningful way).

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Connor Abbott
2019-08-27 10:54:12 +02:00
parent 2abf62d348
commit dcc64fcfed
3 changed files with 23 additions and 6 deletions
+1 -2
View File
@@ -812,8 +812,7 @@ v3d_nir_lower_fs_early(struct v3d_compile *c)
* enabling early_fragment_tests even if the user didn't.
*/
if (!(c->s->info.num_images ||
c->s->info.num_ssbos ||
c->s->info.num_abos)) {
c->s->info.num_ssbos)) {
c->s->info.fs.early_fragment_tests = true;
}
}