diff options
author | Connor Abbott <[email protected]> | 2019-08-27 10:54:12 +0200 |
---|---|---|
committer | Connor Abbott <[email protected]> | 2019-09-03 15:54:54 +0200 |
commit | dcc64fcfed6904f6be41ee4b742c818e76b85712 (patch) | |
tree | 73f686d7d35da411424196c3b8832525f4f17df1 /src/broadcom | |
parent | 2abf62d3483afd8f0de7f19d114d164de4741127 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/broadcom')
-rw-r--r-- | src/broadcom/compiler/vir.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/broadcom/compiler/vir.c b/src/broadcom/compiler/vir.c index 78362a2949c..917ccfeaef1 100644 --- a/src/broadcom/compiler/vir.c +++ b/src/broadcom/compiler/vir.c @@ -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; } } |