Mesa (master): i915g: Enable instanced drawing.

Stephane Marchesin marcheu at kemper.freedesktop.org
Mon Oct 10 00:15:14 PDT 2011


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

Author: Stéphane Marchesin <marcheu at chromium.org>
Date:   Sun Oct  9 17:14:16 2011 -0700

i915g: Enable instanced drawing.

---

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

diff --git a/src/gallium/drivers/i915/i915_screen.c b/src/gallium/drivers/i915/i915_screen.c
index 7d9b865..853d9f1 100644
--- a/src/gallium/drivers/i915/i915_screen.c
+++ b/src/gallium/drivers/i915/i915_screen.c
@@ -178,6 +178,7 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap)
    case PIPE_CAP_TWO_SIDED_STENCIL:
    case PIPE_CAP_VERTEX_ELEMENT_INSTANCE_DIVISOR:
    case PIPE_CAP_BLEND_EQUATION_SEPARATE:
+   case PIPE_CAP_TGSI_INSTANCEID:
       return 1;
 
    /* Unsupported features (boolean caps). */
@@ -185,7 +186,6 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap)
    case PIPE_CAP_DEPTH_CLAMP:
    case PIPE_CAP_INDEP_BLEND_ENABLE:
    case PIPE_CAP_INDEP_BLEND_FUNC:
-   case PIPE_CAP_TGSI_INSTANCEID:
    case PIPE_CAP_SHADER_STENCIL_EXPORT:
    case PIPE_CAP_TEXTURE_MIRROR_CLAMP:
    case PIPE_CAP_TEXTURE_SWIZZLE:



More information about the mesa-commit mailing list