sna: Scale cpp by 8 for bit depth

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111916
Fixes: 1804eacc85 ("sna: Add sna_br13_color_depth()")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2019-10-07 14:16:28 +01:00
parent c6cb1b1995
commit bff5eca49b
1 changed files with 1 additions and 1 deletions

View File

@ -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;