diff options
author | Eric Anholt <[email protected]> | 2008-12-15 13:25:20 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2008-12-15 13:34:07 -0800 |
commit | 095c3a5cb16dae5c1e4cf85bffd3cb2465ab9e28 (patch) | |
tree | 0752fa49d8d563d9a9b85fac90b28486d60c557d /src/mesa | |
parent | e72a44215312ae1f3c812ba28e47b4aec3589de9 (diff) |
i965: Update state before checking for fallbacks in brw_try_draw_prims.
This got flipped around in 7855b2aef6bd9e9c2d73260b5cd166159b2525c6.
Bug #18907. Thanks to idr for pointing me at a nicer testcase than blender.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index c3a26fc82eb..785fb784ca9 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -309,12 +309,12 @@ static GLboolean brw_try_draw_prims( GLcontext *ctx, if (first_time || (brw->state.dirty.brw & BRW_NEW_PRIMITIVE)) { first_time = GL_FALSE; + brw_validate_state(brw); + /* Various fallback checks: */ if (brw->intel.Fallback) goto out; - brw_validate_state(brw); - /* Check that we can fit our state in with our existing batchbuffer, or * flush otherwise. */ |