Mesa (master): r300g: make dithering work like fglrx.

Dave Airlie airlied at kemper.freedesktop.org
Fri Apr 2 21:06:10 UTC 2010


Module: Mesa
Branch: master
Commit: f6c7b911653fb1508256c63518ef0bd15d68186e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f6c7b911653fb1508256c63518ef0bd15d68186e

Author: Dave Airlie <airlied at redhat.com>
Date:   Sat Apr  3 07:00:03 2010 +1000

r300g: make dithering work like fglrx.

>From fglrx traces the dithering is never enabled.

Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/gallium/drivers/r300/r300_state.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c
index 39e0558..bf17d5d 100644
--- a/src/gallium/drivers/r300/r300_state.c
+++ b/src/gallium/drivers/r300/r300_state.c
@@ -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;




More information about the mesa-commit mailing list