Mesa (master): i915g: Lie more so we get GLSL

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Sun Mar 13 12:38:20 UTC 2011


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

Author: Jakob Bornecrantz <wallbraker at gmail.com>
Date:   Sun Mar 13 13:29:49 2011 +0100

i915g: Lie more so we get GLSL

Lots of piglit tests are lazy and wants GLSL

---

 src/gallium/drivers/i915/i915_screen.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/i915/i915_screen.c b/src/gallium/drivers/i915/i915_screen.c
index 504bd0d..e62b609 100644
--- a/src/gallium/drivers/i915/i915_screen.c
+++ b/src/gallium/drivers/i915/i915_screen.c
@@ -118,12 +118,12 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap)
    case PIPE_CAP_BLEND_EQUATION_SEPARATE:
    /* XXX: No code but hw supports it */
    case PIPE_CAP_POINT_SPRITE:
-      return 0;
+      /* Also lie about these when asked to (needed for GLSL / GL 2.0) */
+      return is->debug.lie ? 1 : 0;
 
    /* Unsupported features (boolean caps). */
    case PIPE_CAP_ARRAY_TEXTURES:
    case PIPE_CAP_DEPTH_CLAMP:
-   case PIPE_CAP_GLSL:
    case PIPE_CAP_INDEP_BLEND_ENABLE:
    case PIPE_CAP_INDEP_BLEND_FUNC:
    case PIPE_CAP_TGSI_INSTANCEID:
@@ -135,6 +135,7 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap)
       return 0;
 
    /* Features we can lie about (boolean caps). */
+   case PIPE_CAP_GLSL:
    case PIPE_CAP_OCCLUSION_QUERY:
       return is->debug.lie ? 1 : 0;
 




More information about the mesa-commit mailing list