r300g: fix precision issues with B10G10R10A2

This commit is contained in:
Marek Olšák
2010-12-22 02:22:09 +01:00
parent 2a95542088
commit cb4f367b26
+2
View File
@@ -481,6 +481,8 @@ static uint32_t r300_translate_out_fmt(enum pipe_format format)
} else {
if (desc->channel[i].size == 16) {
modifier |= R300_US_OUT_FMT_C4_16;
} else if (desc->channel[i].size == 10) {
modifier |= R300_US_OUT_FMT_C4_10;
} else {
/* C4_8 seems to be used for the formats whose pixel size
* is <= 32 bits. */