r200: only set all dirty on kernel clears
authorDave Airlie <airlied@redhat.com>
Tue, 31 Mar 2009 00:46:27 +0000 (10:46 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 31 Mar 2009 00:46:27 +0000 (10:46 +1000)
src/mesa/drivers/dri/r200/r200_ioctl.c

index b8e40da475c614185d5feadfc72c52cb6ef21631..0262aea880e2f4325996fbd85a7cb28c077eafbc 100644 (file)
@@ -251,10 +251,10 @@ static void r200Clear( GLcontext *ctx, GLbitfield mask )
 
    if (rmesa->radeon.radeonScreen->kernel_mm)
       r200UserClear(ctx, orig_mask);
-   else
+   else {
       r200KernelClear(ctx, flags);
-
-   rmesa->radeon.hw.all_dirty = GL_TRUE;
+      rmesa->radeon.hw.all_dirty = GL_TRUE;
+   }
 }
 
 /* This version of AllocateMemoryMESA allocates only GART memory, and