Mesa (master): r300g: disable ARB_draw_instanced on SWTCL chipsets.

Marek Olšák mareko at kemper.freedesktop.org
Sun Apr 17 15:46:31 PDT 2011


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

Author: Marek Olšák <maraeo at gmail.com>
Date:   Mon Apr 18 00:43:19 2011 +0200

r300g: disable ARB_draw_instanced on SWTCL chipsets.

This fixes Unigine Heaven.

---

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

diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c
index acb7d9f..642523d 100644
--- a/src/gallium/drivers/r300/r300_screen.c
+++ b/src/gallium/drivers/r300/r300_screen.c
@@ -130,12 +130,12 @@ static int r300_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
         case PIPE_CAP_DEPTHSTENCIL_CLEAR_SEPARATE:
         case PIPE_CAP_SHADER_STENCIL_EXPORT:
         case PIPE_CAP_ARRAY_TEXTURES:
+        case PIPE_CAP_TGSI_INSTANCEID:
             return 0;
 
         /* SWTCL-only features. */
         case PIPE_CAP_STREAM_OUTPUT:
         case PIPE_CAP_PRIMITIVE_RESTART:
-        case PIPE_CAP_TGSI_INSTANCEID:
             return !r300screen->caps.has_tcl;
 
         /* Texturing. */



More information about the mesa-commit mailing list