Re: [Mesa-dev] [PATCH v2] st/mesa: only define GLSL 1.4 for compat if driver supports it
On 17/05/18 00:17, Grazvydas Ignotas wrote: On Wed, May 16, 2018 at 5:02 PM, Christian Gmeinerwrote: Currently GLSL 1.4 is defined for all gallium drivers even only GLSL 1.2 is supported as seen on etnaviv. v1 -> v2: - use _min(..) as suggested by Lucas Stach and Michel Dänzer Fixes 4560aad780b ("mesa: add GLSLVersionCompat constant") Should be "Fixes: ...". See git log for examples. With this: Reviewed-by: Timothy Arceri Gražvydas ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH v2] st/mesa: only define GLSL 1.4 for compat if driver supports it
On Wed, May 16, 2018 at 5:02 PM, Christian Gmeinerwrote: > Currently GLSL 1.4 is defined for all gallium drivers even only > GLSL 1.2 is supported as seen on etnaviv. > > v1 -> v2: > - use _min(..) as suggested by Lucas Stach and Michel Dänzer > > Fixes 4560aad780b ("mesa: add GLSLVersionCompat constant") Should be "Fixes: ...". See git log for examples. Gražvydas ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH v2] st/mesa: only define GLSL 1.4 for compat if driver supports it
Am Mittwoch, den 16.05.2018, 16:02 +0200 schrieb Christian Gmeiner: > Currently GLSL 1.4 is defined for all gallium drivers even only > GLSL 1.2 is supported as seen on etnaviv. > > v1 -> v2: > - use _min(..) as suggested by Lucas Stach and Michel Dänzer > > Fixes 4560aad780b ("mesa: add GLSLVersionCompat constant") > Signed-off-by: Christian GmeinerReviewed-by: Lucas Stach > --- > src/mesa/state_tracker/st_extensions.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/mesa/state_tracker/st_extensions.c > b/src/mesa/state_tracker/st_extensions.c > index 19ef736e5b..2d56a88027 100644 > --- a/src/mesa/state_tracker/st_extensions.c > +++ b/src/mesa/state_tracker/st_extensions.c > @@ -936,7 +936,7 @@ void st_init_extensions(struct pipe_screen *screen, > > /* Figure out GLSL support and set GLSLVersion to it. */ > consts->GLSLVersion = screen->get_param(screen, > PIPE_CAP_GLSL_FEATURE_LEVEL); > - consts->GLSLVersionCompat = 140; > + consts->GLSLVersionCompat = _min(consts->GLSLVersion, 140); > > _mesa_override_glsl_version(consts); > ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
[Mesa-dev] [PATCH v2] st/mesa: only define GLSL 1.4 for compat if driver supports it
Currently GLSL 1.4 is defined for all gallium drivers even only GLSL 1.2 is supported as seen on etnaviv. v1 -> v2: - use _min(..) as suggested by Lucas Stach and Michel Dänzer Fixes 4560aad780b ("mesa: add GLSLVersionCompat constant") Signed-off-by: Christian Gmeiner--- src/mesa/state_tracker/st_extensions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 19ef736e5b..2d56a88027 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -936,7 +936,7 @@ void st_init_extensions(struct pipe_screen *screen, /* Figure out GLSL support and set GLSLVersion to it. */ consts->GLSLVersion = screen->get_param(screen, PIPE_CAP_GLSL_FEATURE_LEVEL); - consts->GLSLVersionCompat = 140; + consts->GLSLVersionCompat = _min(consts->GLSLVersion, 140); _mesa_override_glsl_version(consts); -- 2.17.0 ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev