svga: return 120 for PIPE_CAP_GLSL_FEATURE_LEVEL
authorBrian Paul <brianp@vmware.com>
Tue, 26 Jun 2012 22:37:33 +0000 (16:37 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 26 Jun 2012 23:03:33 +0000 (17:03 -0600)
Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/gallium/drivers/svga/svga_screen.c

index 09d76468523180ae1cbac3f9cc52de54b8d42b1f..70a2530bcac421e689a6e649ce7a3b7ceb184da1 100644 (file)
@@ -222,6 +222,9 @@ svga_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_MIXED_COLORBUFFER_FORMATS:
       return 1; /* expected for GL_ARB_framebuffer_object */
 
+   case PIPE_CAP_GLSL_FEATURE_LEVEL:
+      return 120;
+
    /* Unsupported features */
    case PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION:
    case PIPE_CAP_TEXTURE_MIRROR_CLAMP:
@@ -247,7 +250,6 @@ svga_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_STREAM_OUTPUT_PAUSE_RESUME:
    case PIPE_CAP_TGSI_CAN_COMPACT_VARYINGS:
    case PIPE_CAP_TGSI_CAN_COMPACT_CONSTANTS:
-   case PIPE_CAP_GLSL_FEATURE_LEVEL:
    case PIPE_CAP_VERTEX_BUFFER_OFFSET_4BYTE_ALIGNED_ONLY:
    case PIPE_CAP_VERTEX_BUFFER_STRIDE_4BYTE_ALIGNED_ONLY:
    case PIPE_CAP_COMPUTE: