[Mesa-dev] [PATCH 2/2] st/mesa: allow glsl version up to 410, enable ARB_shader_precision

Marek Olšák maraeo at gmail.com
Tue Apr 28 01:46:05 PDT 2015


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

Marek

On Tue, Apr 28, 2015 at 9:41 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> I've pushed the patch that fixes up the GLSL version to be the "right"
> one for the GL version in question... any objections to this patch?
>
> On Mon, Apr 27, 2015 at 9:23 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
>> ---
>>  src/mesa/state_tracker/st_extensions.c | 6 ++++--
>>  1 file changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
>> index 25932dd..82e4a30 100644
>> --- a/src/mesa/state_tracker/st_extensions.c
>> +++ b/src/mesa/state_tracker/st_extensions.c
>> @@ -657,8 +657,8 @@ void st_init_extensions(struct pipe_screen *screen,
>>     glsl_feature_level = screen->get_param(screen, PIPE_CAP_GLSL_FEATURE_LEVEL);
>>
>>     consts->GLSLVersion = glsl_feature_level;
>> -   if (glsl_feature_level >= 330)
>> -      consts->GLSLVersion = 330;
>> +   if (glsl_feature_level >= 410)
>> +      consts->GLSLVersion = 410;
>>
>>     _mesa_override_glsl_version(consts);
>>
>> @@ -669,6 +669,8 @@ void st_init_extensions(struct pipe_screen *screen,
>>
>>     if (glsl_feature_level >= 400)
>>        extensions->ARB_gpu_shader5 = GL_TRUE;
>> +   if (glsl_feature_level >= 410)
>> +      extensions->ARB_shader_precision = GL_TRUE;
>>
>>     /* This extension needs full OpenGL 3.2, but we don't know if that's
>>      * supported at this point. Only check the GLSL version. */
>> --
>> 2.0.5
>>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list