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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user