[Mesa-dev] [PATCH] glsl: enable EXT_texture_array by default in 1.30

Timothy Arceri tarceri at itsqueeze.com
Fri Jun 29 04:42:38 UTC 2018


This extension was made core in OpenGL 3.0.

This fixes rendering issues in No Man's Sky.
---
 src/compiler/glsl/builtin_functions.cpp | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/compiler/glsl/builtin_functions.cpp b/src/compiler/glsl/builtin_functions.cpp
index 7119903795f..787a72b49c5 100644
--- a/src/compiler/glsl/builtin_functions.cpp
+++ b/src/compiler/glsl/builtin_functions.cpp
@@ -336,20 +336,22 @@ static bool
 texture_array_lod(const _mesa_glsl_parse_state *state)
 {
    return lod_exists_in_stage(state) &&
-          state->EXT_texture_array_enable;
+          (state->is_version(130, 0) ||
+           state->EXT_texture_array_enable);
 }
 
 static bool
 fs_texture_array(const _mesa_glsl_parse_state *state)
 {
    return state->stage == MESA_SHADER_FRAGMENT &&
-          state->EXT_texture_array_enable;
+          (state->is_version(130, 0) ||
+           state->EXT_texture_array_enable);
 }
 
 static bool
 texture_array(const _mesa_glsl_parse_state *state)
 {
-   return state->EXT_texture_array_enable;
+   return state->is_version(130, 0) || state->EXT_texture_array_enable;
 }
 
 static bool
-- 
2.17.1



More information about the mesa-dev mailing list