projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99ae9e8
)
r300g: fix rendering into the L8 and A8 texture formats
author
Marek Olšák
<maraeo@gmail.com>
Fri, 19 Feb 2010 19:01:11 +0000
(20:01 +0100)
committer
Marek Olšák
<maraeo@gmail.com>
Fri, 19 Feb 2010 19:02:41 +0000
(20:02 +0100)
RB3D_COLORPITCH.COLORFORMAT.I8 stores the C2 component.
src/gallium/drivers/r300/r300_state_inlines.h
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_state_inlines.h
b/src/gallium/drivers/r300/r300_state_inlines.h
index a6083925326cf52aa76eafea1109998cd83bfe28..c990be40b9e88ea679d460b953840d20142ad4bc 100644
(file)
--- a/
src/gallium/drivers/r300/r300_state_inlines.h
+++ b/
src/gallium/drivers/r300/r300_state_inlines.h
@@
-422,11
+422,11
@@
static INLINE uint32_t r300_translate_out_fmt(enum pipe_format format)
/* 8-bit outputs */
case PIPE_FORMAT_A8_UNORM:
return R300_US_OUT_FMT_C4_8 |
- R300_C
0
_SEL_A;
+ R300_C
2
_SEL_A;
case PIPE_FORMAT_I8_UNORM:
case PIPE_FORMAT_L8_UNORM:
return R300_US_OUT_FMT_C4_8 |
- R300_C
0
_SEL_R;
+ R300_C
2
_SEL_R;
/* R300_OUT_SIGN(x) */
default:
debug_printf("r300: Implementation error: "