st/mesa: expose ARB_sync unconditionally
authorMarek Olšák <marek.olsak@amd.com>
Tue, 9 Jan 2018 14:48:52 +0000 (15:48 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 17 Jan 2018 19:17:59 +0000 (20:17 +0100)
All drivers support it.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
src/mesa/state_tracker/st_extensions.c

index 208a08323d38a0889eb45c441029080bfaf40ddf..51062f6d0d29d07ae5f1520146be40113b9aca8b 100644 (file)
@@ -873,7 +873,8 @@ void st_init_extensions(struct pipe_screen *screen,
    extensions->ARB_internalformat_query = GL_TRUE;
    extensions->ARB_internalformat_query2 = GL_TRUE;
    extensions->ARB_map_buffer_range = GL_TRUE;
-   extensions->ARB_texture_border_clamp = GL_TRUE; /* XXX temp */
+   extensions->ARB_sync = GL_TRUE;
+   extensions->ARB_texture_border_clamp = GL_TRUE;
    extensions->ARB_texture_cube_map = GL_TRUE;
    extensions->ARB_texture_env_combine = GL_TRUE;
    extensions->ARB_texture_env_crossbar = GL_TRUE;
@@ -1021,10 +1022,6 @@ void st_init_extensions(struct pipe_screen *screen,
       extensions->OES_geometry_shader = GL_TRUE;
    }
 
-   if (screen->fence_finish) {
-      extensions->ARB_sync = GL_TRUE;
-   }
-
    /* Needs PIPE_CAP_SAMPLE_SHADING + all the sample-related bits of
     * ARB_gpu_shader5. This enables all the per-sample shading ES extensions.
     */