OSDN Git Service

r300g: make dithering work like fglrx.
authorDave Airlie <airlied@redhat.com>
Fri, 2 Apr 2010 21:00:03 +0000 (07:00 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 2 Apr 2010 21:03:01 +0000 (07:03 +1000)
From fglrx traces the dithering is never enabled.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r300/r300_state.c

index 39e0558..bf17d5d 100644 (file)
@@ -321,8 +321,10 @@ static void* r300_create_blend_state(struct pipe_context* pipe,
     }
 
     if (state->dither) {
-        blend->dither = R300_RB3D_DITHER_CTL_DITHER_MODE_LUT |
-                R300_RB3D_DITHER_CTL_ALPHA_DITHER_MODE_LUT;
+       /* fglrx appears to never set this */
+       blend->dither = 0;
+        /* blend->dither = R300_RB3D_DITHER_CTL_DITHER_MODE_LUT |
+                           R300_RB3D_DITHER_CTL_ALPHA_DITHER_MODE_LUT; */
     }
 
     return (void*)blend;