mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
r300g: fix constant buffer upload once again for r3xx->r4xx
This commit is contained in:
parent
fdf054a585
commit
c1ab2c327e
1 changed files with 1 additions and 1 deletions
|
|
@ -182,7 +182,7 @@ void r300_emit_fs_constants(struct r300_context* r300, unsigned size, void *stat
|
|||
OUT_CS_REG_SEQ(R300_PFS_PARAM_0_X, count * 4);
|
||||
if (buf->remap_table){
|
||||
for (i = 0; i < count; i++) {
|
||||
uint32_t *data = &buf->ptr[buf->remap_table[i]*4];
|
||||
float *data = (float*)&buf->ptr[buf->remap_table[i]*4];
|
||||
for (j = 0; j < 4; j++)
|
||||
OUT_CS(pack_float24(data[j]));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue