gallium/noop: report GL 2.1
authorDave Airlie <airlied@redhat.com>
Thu, 18 Nov 2010 08:10:55 +0000 (18:10 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 18 Nov 2010 08:11:27 +0000 (18:11 +1000)
this should at least make app use the same paths as they would for a real
driver.

src/gallium/drivers/noop/noop_pipe.c

index a5a48080c274e0b4497a47e6f9337e39ebf85938..fb5cdb460935c37b4b684292faa0c6b3c838c660 100644 (file)
@@ -392,16 +392,19 @@ static int noop_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
        case PIPE_CAP_NPOT_TEXTURES:
        case PIPE_CAP_TWO_SIDED_STENCIL:
        case PIPE_CAP_GLSL:
-       case PIPE_CAP_DUAL_SOURCE_BLEND:
-       case PIPE_CAP_ANISOTROPIC_FILTER:
-       case PIPE_CAP_POINT_SPRITE:
        case PIPE_CAP_OCCLUSION_QUERY:
-       case PIPE_CAP_TEXTURE_SHADOW_MAP:
+       case PIPE_CAP_POINT_SPRITE:
+       case PIPE_CAP_ANISOTROPIC_FILTER:
        case PIPE_CAP_TEXTURE_MIRROR_CLAMP:
        case PIPE_CAP_TEXTURE_MIRROR_REPEAT:
+       case PIPE_CAP_TEXTURE_SHADOW_MAP:
+       case PIPE_CAP_TEXTURE_SWIZZLE:
        case PIPE_CAP_BLEND_EQUATION_SEPARATE:
+
+         return 1;
+       case PIPE_CAP_DUAL_SOURCE_BLEND:
+
        case PIPE_CAP_SM3:
-       case PIPE_CAP_TEXTURE_SWIZZLE:
        case PIPE_CAP_INDEP_BLEND_ENABLE:
        case PIPE_CAP_DEPTHSTENCIL_CLEAR_SEPARATE:
        case PIPE_CAP_DEPTH_CLAMP: