[Mesa-dev] [PATCH 07/33] i965: Check Fallback again after upload.
Eric Anholt
eric at anholt.net
Mon Oct 24 14:16:54 PDT 2011
As we move state to emit() time from prepare() time, a couple of the
places that flag fallbacks will move here.
---
src/mesa/drivers/dri/i965/brw_draw.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c
index cd1b082..aa03f00 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.c
+++ b/src/mesa/drivers/dri/i965/brw_draw.c
@@ -361,7 +361,6 @@ retry:
if (brw->state.dirty.brw) {
brw_validate_state(brw);
- /* Various fallback checks: */
if (brw->intel.Fallback) {
retval = false;
goto out;
@@ -369,6 +368,12 @@ retry:
intel->no_batch_wrap = true;
brw_upload_state(brw);
+
+ if (unlikely(brw->intel.Fallback)) {
+ intel->no_batch_wrap = false;
+ retval = false;
+ goto out;
+ }
}
if (intel->gen >= 7)
--
1.7.7
More information about the mesa-dev
mailing list