diff options
author | Jerome Glisse <[email protected]> | 2009-06-17 16:33:14 +0200 |
---|---|---|
committer | Jerome Glisse <[email protected]> | 2009-06-17 16:33:14 +0200 |
commit | f806a0336153ec211441a23da0eb8e763e001b02 (patch) | |
tree | dc30a7bd191c3b66ac288308e3f1c422e25c7c4f | |
parent | 2506c4e8b142b933668db2b478333ebdfcfd0d96 (diff) |
radeon: Flush command buffer on viewport change
We flush the command buffer so we don't emit mixed
state (with new and previous buffer size) command
buffer, this is especialy affecting zbuffer states.
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_common.c b/src/mesa/drivers/dri/radeon/radeon_common.c index 466eda784ef..32fe4d5645b 100644 --- a/src/mesa/drivers/dri/radeon/radeon_common.c +++ b/src/mesa/drivers/dri/radeon/radeon_common.c @@ -861,6 +861,7 @@ void radeon_viewport(GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei he if (!driContext->driScreenPriv->dri2.enabled) return; + radeonFlush(ctx); radeon_update_renderbuffers(driContext, driContext->driDrawablePriv); if (driContext->driDrawablePriv != driContext->driReadablePriv) radeon_update_renderbuffers(driContext, driContext->driReadablePriv); |