svga: Enable Opengl 3.3 compatibility profile
authorNeha Bhende <bhenden@vmware.com>
Tue, 11 Sep 2018 19:27:54 +0000 (13:27 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 20 Sep 2018 19:20:10 +0000 (13:20 -0600)
With this patch, svga driver will start advertising OpenGL 3.3
compatibility profile.

Tested with some mesa demos, piglit and glretrace.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_screen.c

index 92523315191191966db148e7dddbcfc0eabaa672..ab9a3c7f0d8fdbd3b7b96bde413fcab655ead7f5 100644 (file)
@@ -280,7 +280,7 @@ svga_get_param(struct pipe_screen *screen, enum pipe_cap param)
       return sws->have_vgpu10 ? 330 : 120;
 
    case PIPE_CAP_GLSL_FEATURE_LEVEL_COMPATIBILITY:
-      return sws->have_vgpu10 ? 140 : 120;
+      return sws->have_vgpu10 ? 330 : 120;
 
    case PIPE_CAP_PREFER_BLIT_BASED_TEXTURE_TRANSFER:
    case PIPE_CAP_DEPTH_CLIP_DISABLE_SEPARATE: