diff options
author | Dave Airlie <[email protected]> | 2009-12-18 14:35:03 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2009-12-18 14:35:03 +1000 |
commit | 112908c279b0a768eca95a505856a087e479674b (patch) | |
tree | 223dbf732b663853f6e94bdf5d15adf4a352be38 /src/mesa/drivers/dri/r600/r700_clear.c | |
parent | 5f59e79f3a9f273c683304117802bb216171c257 (diff) |
radeon: fix frontbuffer read/drawpixels
Bug 25699
The main problem was the optimising flush wasn't doing the front
rendering checks properly.
Diffstat (limited to 'src/mesa/drivers/dri/r600/r700_clear.c')
-rw-r--r-- | src/mesa/drivers/dri/r600/r700_clear.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_clear.c b/src/mesa/drivers/dri/r600/r700_clear.c index c6546ab00c2..526d3843d16 100644 --- a/src/mesa/drivers/dri/r600/r700_clear.c +++ b/src/mesa/drivers/dri/r600/r700_clear.c @@ -57,6 +57,10 @@ void r700Clear(GLcontext * ctx, GLbitfield mask) radeon_print(RADEON_RENDER, RADEON_VERBOSE, "%s %x\n", __func__, mask); + if (mask & (BUFFER_BIT_FRONT_LEFT | BUFFER_BIT_FRONT_RIGHT)) { + context->radeon.front_buffer_dirty = GL_TRUE; + } + if( GL_TRUE == r700ClearFast(context, mask) ) { return; |