projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3611d01
)
r300g: Fix fragment program constants upload on R300
author
Nicolai Hähnle
<nhaehnle@gmail.com>
Sun, 11 Oct 2009 10:40:07 +0000
(12:40 +0200)
committer
Nicolai Hähnle
<nhaehnle@gmail.com>
Sun, 11 Oct 2009 10:41:18 +0000
(12:41 +0200)
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
src/gallium/drivers/r300/r300_emit.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_emit.c
b/src/gallium/drivers/r300/r300_emit.c
index 77ce431cdc3fb9d984e280c8ad819fce6d54e13d..570b4c5ef7fbeddd1d8ca80b34fcaf3c94f42b7a 100644
(file)
--- a/
src/gallium/drivers/r300/r300_emit.c
+++ b/
src/gallium/drivers/r300/r300_emit.c
@@
-212,7
+212,7
@@
void r300_emit_fragment_program_code(struct r300_context* r300,
}
if (constants->Count) {
- OUT_CS_
ONE_REG
(R300_PFS_PARAM_0_X, constants->Count * 4);
+ OUT_CS_
REG_SEQ
(R300_PFS_PARAM_0_X, constants->Count * 4);
for(i = 0; i < constants->Count; ++i) {
const float * data = get_shader_constant(r300, &constants->Constants[i], externals);
OUT_CS(pack_float24(data[0]));