mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-04 10:40:36 +01:00
r300g: Fix fragment program constants upload on R300
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
This commit is contained in:
parent
3611d01a44
commit
f096cc7dc1
1 changed files with 1 additions and 1 deletions
|
|
@ -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]));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue