xf86-video-intel: src/sna/sna_io.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Oct 7 13:22:54 UTC 2019


 src/sna/sna_io.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit bff5eca49b27cb47673123222a714d2a6f56287f
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Mon Oct 7 14:16:28 2019 +0100

    sna: Scale cpp by 8 for bit depth
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111916
    Fixes: 1804eacc85da ("sna: Add sna_br13_color_depth()")
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_io.c b/src/sna/sna_io.c
index d03280ed..03509f03 100644
--- a/src/sna/sna_io.c
+++ b/src/sna/sna_io.c
@@ -465,7 +465,7 @@ fallback:
 	}
 
 	br13 = 0xcc << 16;
-	br13 |= sna_br13_color_depth(cpp * 4);
+	br13 |= sna_br13_color_depth(cpp * 8);
 	if (cpp == 4)
 		cmd |= BLT_WRITE_ALPHA | BLT_WRITE_RGB;
 


More information about the xorg-commit mailing list