agx: stash early_fragment_test info

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29179>
This commit is contained in:
Alyssa Rosenzweig
2024-04-27 11:28:17 -04:00
committed by Marge Bot
parent 1c8aab388c
commit 1be0e8e348
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -3431,6 +3431,7 @@ agx_compile_shader_nir(nir_shader *nir, struct agx_shader_key *key,
info->depth_layout = layout;
info->reads_tib = nir->info.fs.uses_fbfetch_output;
info->early_fragment_tests = nir->info.fs.early_fragment_tests;
}
out->binary = binary.data;
+3
View File
@@ -85,6 +85,9 @@ struct agx_shader_info {
/* Does the shader read the tilebuffer? */
bool reads_tib;
/* Does the shader require early fragment tests? */
bool early_fragment_tests;
/* Does the shader potentially draw to a nonzero viewport? */
bool nonzero_viewport;