summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-10-07 14:16:28 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2019-10-07 14:16:28 +0100
commitbff5eca49b27cb47673123222a714d2a6f56287f (patch)
tree65ec32315911008822221006346b632d3d096be5
parentc6cb1b199598c572484fb4e30e1026be9d4ccc31 (diff)
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@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_io.c2
1 files changed, 1 insertions, 1 deletions
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;