Mesa (master): gallium/noop: report GL 2.1

Dave Airlie airlied at kemper.freedesktop.org
Thu Nov 18 08:18:55 UTC 2010


Module: Mesa
Branch: master
Commit: 185d862cd8cd0a56dd86daa01d9c692ff4abfb54
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=185d862cd8cd0a56dd86daa01d9c692ff4abfb54

Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Nov 18 18:10:55 2010 +1000

gallium/noop: report GL 2.1

this should at least make app use the same paths as they would for a real
driver.

---

 src/gallium/drivers/noop/noop_pipe.c |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/gallium/drivers/noop/noop_pipe.c b/src/gallium/drivers/noop/noop_pipe.c
index a5a4808..fb5cdb4 100644
--- a/src/gallium/drivers/noop/noop_pipe.c
+++ b/src/gallium/drivers/noop/noop_pipe.c
@@ -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:




More information about the mesa-commit mailing list