st/mesa: remove always-true expression
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 16 Sep 2019 06:36:16 +0000 (08:36 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 17 Sep 2019 07:26:42 +0000 (07:26 +0000)
In case the GLSL version is 130 or higher, we've already enabled
ARB_shader_bit_encoding a bit earlier in this same function. So this
condition will always be true.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_extensions.c

index 40e51f828de7e1e1a12ae525bcc049d4a2e4026b..401a64b62e353e2f4b0c52b181b3dc94cf5896a4 100644 (file)
@@ -1445,7 +1445,6 @@ void st_init_extensions(struct pipe_screen *screen,
     */
    if (GLSLVersion >= 130 &&
        extensions->ARB_uniform_buffer_object &&
-       extensions->ARB_shader_bit_encoding &&
        extensions->NV_primitive_restart &&
        screen->get_shader_param(screen, PIPE_SHADER_VERTEX,
                                 PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS) >= 16 &&