projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a95542
)
r300g: fix precision issues with B10G10R10A2
author
Marek Olšák
<maraeo@gmail.com>
Wed, 22 Dec 2010 01:22:09 +0000
(
02:22
+0100)
committer
Marek Olšák
<maraeo@gmail.com>
Wed, 22 Dec 2010 02:39:37 +0000
(
03:39
+0100)
src/gallium/drivers/r300/r300_texture.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_texture.c
b/src/gallium/drivers/r300/r300_texture.c
index 6d86bc282ffd0ccdab57c4ed87d4c449a75ee174..24f1d68f4a75c6cae96b78bad47fd7fc1d82175b 100644
(file)
--- a/
src/gallium/drivers/r300/r300_texture.c
+++ b/
src/gallium/drivers/r300/r300_texture.c
@@
-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. */