mesa/glsl: move ARB_fragment_coord_conventions_enable field
authorTimothy Arceri <timothy.arceri@collabora.com>
Tue, 22 Nov 2016 07:17:37 +0000 (18:17 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 19 Jan 2017 06:05:26 +0000 (17:05 +1100)
This is only used by gl_shader not gl_linked_shader so move it
there.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/compiler/glsl/glsl_parser_extras.cpp
src/compiler/glsl/linker.cpp
src/mesa/main/mtypes.h

index 2b4dce0d359044ed04e30249e430a3e3518baefa..d84a3f8f5f7ed487682b0275072cdd571f04378b 100644 (file)
@@ -1813,7 +1813,7 @@ set_shader_inout_layout(struct gl_shader *shader,
       shader->info.uses_gl_fragcoord = state->fs_uses_gl_fragcoord;
       shader->info.pixel_center_integer = state->fs_pixel_center_integer;
       shader->info.origin_upper_left = state->fs_origin_upper_left;
-      shader->info.ARB_fragment_coord_conventions_enable =
+      shader->ARB_fragment_coord_conventions_enable =
          state->ARB_fragment_coord_conventions_enable;
       shader->EarlyFragmentTests = state->fs_early_fragment_tests;
       shader->info.InnerCoverage = state->fs_inner_coverage;
index 9e85155b6da298b4d1b51ce6cafaba466c0088b4..3846679c260b54aa522978d696a145c5add4b847 100644 (file)
@@ -4674,7 +4674,7 @@ link_shaders(struct gl_context *ctx, struct gl_shader_program *prog)
          goto done;
       }
 
-      if (prog->Shaders[i]->info.ARB_fragment_coord_conventions_enable) {
+      if (prog->Shaders[i]->ARB_fragment_coord_conventions_enable) {
          prog->ARB_fragment_coord_conventions_enable = true;
       }
 
index 94fc6e97f47c8f5f7eac7f5372429c58a80d61b9..cb35aa1c95c3afc0b04716f9d4abe339d76f8d96 100644 (file)
@@ -2246,7 +2246,6 @@ struct gl_shader_info
    bool redeclares_gl_fragcoord;
    bool PostDepthCoverage;
    bool InnerCoverage;
-   bool ARB_fragment_coord_conventions_enable;
 
    /**
     * Fragment shader state from GLSL 1.50 layout qualifiers.
@@ -2434,6 +2433,8 @@ struct gl_shader
     */
    bool EarlyFragmentTests;
 
+   bool ARB_fragment_coord_conventions_enable;
+
    struct gl_shader_info info;
 };