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

Marek Olšák maraeo at gmail.com
Fri Jun 29 05:02:15 UTC 2018


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Fri, Jun 29, 2018 at 12:42 AM, Timothy Arceri <tarceri at itsqueeze.com> wrote:
> 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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list