Mesa (7.9): i965: fallback lineloop on sandybridge for now
Ian Romanick
idr at kemper.freedesktop.org
Thu Sep 30 20:29:17 UTC 2010
Module: Mesa
Branch: 7.9
Commit: 1c8795075fa3f5518b728184abd09b758ca84397
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1c8795075fa3f5518b728184abd09b758ca84397
Author: Zhenyu Wang <zhenyuw at linux.intel.com>
Date: Sun Sep 26 13:15:39 2010 +0800
i965: fallback lineloop on sandybridge for now
Until we fixed GS hang issue.
(cherry picked from commit 73dab75b4165f7d2214a68d4ba8e3cb7aab9b4ac)
---
src/mesa/drivers/dri/i965/brw_draw.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c
index 16331cc..6a4dda2 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.c
+++ b/src/mesa/drivers/dri/i965/brw_draw.c
@@ -204,6 +204,13 @@ static GLboolean check_fallbacks( struct brw_context *brw,
GLcontext *ctx = &brw->intel.ctx;
GLuint i;
+ /* XXX FIXME */
+ if (brw->intel.gen >= 6) {
+ for (i = 0; i < nr_prims; i++)
+ if (prim[i].mode == GL_LINE_LOOP)
+ return GL_TRUE;
+ }
+
/* If we don't require strict OpenGL conformance, never
* use fallbacks. If we're forcing fallbacks, always
* use fallfacks.
More information about the mesa-commit
mailing list