[Mesa-dev] [PATCH 01/21] mesa/compiler: copy early fragment tests to shader_info in _mesa_copy_linked_program_data()

Timothy Arceri timothy.arceri at collabora.com
Thu Oct 20 08:46:51 UTC 2016


---
 src/compiler/shader_info.c | 4 ----
 src/mesa/main/shaderapi.c  | 1 +
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/compiler/shader_info.c b/src/compiler/shader_info.c
index 49361bc..34aaf9f 100644
--- a/src/compiler/shader_info.c
+++ b/src/compiler/shader_info.c
@@ -38,8 +38,4 @@ copy_shader_info(const struct gl_shader_program *shader_prog,
    info->patch_outputs_written = sh->Program->PatchOutputsWritten;
    info->system_values_read = sh->Program->SystemValuesRead;
    info->uses_texture_gather = sh->Program->UsesGather;
-
-   if (sh->Stage == MESA_SHADER_FRAGMENT) {
-      sh->Program->info.fs.early_fragment_tests = sh->info.EarlyFragmentTests;
-   }
 }
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index 4996e8e..73b8931 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -2197,6 +2197,7 @@ _mesa_copy_linked_program_data(const struct gl_shader_program *src,
    }
    case MESA_SHADER_FRAGMENT: {
       dst->info.fs.depth_layout = src->FragDepthLayout;
+      dst->info.fs.early_fragment_tests = dst_sh->info.EarlyFragmentTests;
       break;
    }
    case MESA_SHADER_COMPUTE: {
-- 
2.7.4



More information about the mesa-dev mailing list