summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/r300_ioctl.c
diff options
context:
space:
mode:
authorVladimir Dergachev <volodya@freedesktop.org>2005-01-10 03:22:54 +0000
committerVladimir Dergachev <volodya@freedesktop.org>2005-01-10 03:22:54 +0000
commit5f61c6f21f08be622112630dba2cbdc05e118022 (patch)
tree76aa2556f65a9877e76c0345880bbe4bfe522cf4 /src/mesa/drivers/dri/r300/r300_ioctl.c
parent8ad31013b2d540645c14f37587ec6b418b865b03 (diff)
Clean up the code and make it unnecessary to issue extra calls to Setup*Shaders
in the r300_run_immediate_render function. Bumps up glxgears fps count by about 100 points.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_ioctl.c')
-rw-r--r--src/mesa/drivers/dri/r300/r300_ioctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_ioctl.c b/src/mesa/drivers/dri/r300/r300_ioctl.c
index b4b1aebc4d..80d059da70 100644
--- a/src/mesa/drivers/dri/r300/r300_ioctl.c
+++ b/src/mesa/drivers/dri/r300/r300_ioctl.c
@@ -301,6 +301,8 @@ static void r300Clear(GLcontext * ctx, GLbitfield mask, GLboolean all,
* but do keep it like this for now.
*/
r300ResetHwState(r300);
+ /* r300ClearBuffer has trampled all over the hardware state.. */
+ r300->hw.all_dirty=GL_TRUE;
}
void r300Flush(GLcontext * ctx)