projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac7ae8b
)
nvfx: draw: emit color as floating point
author
Luca Barbieri
<luca@luca-barbieri.com>
Mon, 22 Feb 2010 12:18:10 +0000
(13:18 +0100)
committer
Younes Manton
<younes.m@gmail.com>
Mon, 15 Mar 2010 04:03:04 +0000
(
00:03
-0400)
Don't lose precision by converting to u8.
src/gallium/drivers/nvfx/nvfx_draw.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nvfx/nvfx_draw.c
b/src/gallium/drivers/nvfx/nvfx_draw.c
index 4e0575885d5066bf7fc3cba289ba68c19dd92b1f..aea0baadf91afb1b2183eed08f5578dc7bab5127 100644
(file)
--- a/
src/gallium/drivers/nvfx/nvfx_draw.c
+++ b/
src/gallium/drivers/nvfx/nvfx_draw.c
@@
-324,7
+324,7
@@
nvfx_state_vtxfmt_validate(struct nvfx_context *nvfx)
for (i = 0; i < 2; i++) {
if (!(colour & (1 << i)))
continue;
- emit_attrib(nvfx, 3 + i, EMIT_4
UB
, TGSI_SEMANTIC_COLOR, i);
+ emit_attrib(nvfx, 3 + i, EMIT_4
F
, TGSI_SEMANTIC_COLOR, i);
}
for (i = 0; i < 8; i++) {