From 1be0e8e3480668a75fa99cfb859bd792f5038dc7 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sat, 27 Apr 2024 11:28:17 -0400 Subject: [PATCH] agx: stash early_fragment_test info Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.c | 1 + src/asahi/compiler/agx_compile.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index f8b5f3af490..e79960e31bd 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -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; diff --git a/src/asahi/compiler/agx_compile.h b/src/asahi/compiler/agx_compile.h index 9c2adc63ee2..13d379fa296 100644 --- a/src/asahi/compiler/agx_compile.h +++ b/src/asahi/compiler/agx_compile.h @@ -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;