Re: [Mesa-dev] [PATCH] mesa/r300classic: Fix dri2Invalidate/radeon_prepare_render for page flipping.

2010-11-08 Thread Alex Deucher
On Sun, Nov 7, 2010 at 10:09 PM, Mario Kleiner mario.klei...@tuebingen.mpg.de wrote: Alex Deucher is currently preparing patches for page-flipped bufferswaps on radeon hardware. Testing these on a RV530 gpu with the R300 classic driver exposed a bug - We call radeon_prepare_render() too late.

[Mesa-dev] [PATCH] mesa/r300classic: Fix dri2Invalidate/radeon_prepare_render for page flipping.

2010-11-07 Thread Mario Kleiner
A call to radeon_prepare_render() at the beginning of draw operations was placed too deep in the call chain, inside r300RunRenderPrimitive(), instead of r300DrawPrims() where it belongs. This leads to emission of stale target color renderbuffer into the cs if bufferswaps via page-flipping are

[Mesa-dev] [PATCH] mesa/r300classic: Fix dri2Invalidate/radeon_prepare_render for page flipping.

2010-11-07 Thread Mario Kleiner
Alex Deucher is currently preparing patches for page-flipped bufferswaps on radeon hardware. Testing these on a RV530 gpu with the R300 classic driver exposed a bug - We call radeon_prepare_render() too late. This causes massive visual corruption and eventually graphics hangs. The following patch