summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-02-22 13:18:10 +0100
committerYounes Manton <[email protected]>2010-03-15 00:03:04 -0400
commit152dffd3e196208a85148c4a2f7a9a6df44f3bff (patch)
tree4f31363c108a5e8e90ddc834b1052a147a56ea8f /src
parentac7ae8bc6ae0d364103d655482a522c12504816b (diff)
nvfx: draw: emit color as floating point
Don't lose precision by converting to u8.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_draw.c b/src/gallium/drivers/nvfx/nvfx_draw.c
index 4e0575885d5..aea0baadf91 100644
--- 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_4UB, TGSI_SEMANTIC_COLOR, i);
+ emit_attrib(nvfx, 3 + i, EMIT_4F, TGSI_SEMANTIC_COLOR, i);
}
for (i = 0; i < 8; i++) {