As we move state to emit() time from prepare() time, a couple of the
places that flag fallbacks will move here.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Paul Berry <stereotype441@gmail.com>
if (brw->state.dirty.brw) {
brw_validate_state(brw);
- /* Various fallback checks: */
if (brw->intel.Fallback) {
retval = false;
goto out;
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)