r300g: Fix fragment program constants upload on R300

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
This commit is contained in:
Nicolai Hähnle 2009-10-11 12:40:07 +02:00
parent 3611d01a44
commit f096cc7dc1

View file

@ -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]));