mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
965: fix the constant buffers
This commit is contained in:
parent
e9207430ce
commit
ebf78c0dcc
2 changed files with 3 additions and 3 deletions
|
|
@ -175,7 +175,7 @@ static void upload_constant_buffer(struct brw_context *brw)
|
|||
{
|
||||
struct brw_mem_pool *pool = &brw->pool[BRW_GS_POOL];
|
||||
unsigned sz = brw->curbe.total_size;
|
||||
unsigned bufsz = sz * 16 * sizeof(float);
|
||||
unsigned bufsz = sz * sizeof(float);
|
||||
float *buf;
|
||||
unsigned i;
|
||||
|
||||
|
|
@ -261,7 +261,7 @@ static void upload_constant_buffer(struct brw_context *brw)
|
|||
}
|
||||
|
||||
if (1) {
|
||||
for (i = 0; i < sz*16; i+=4)
|
||||
for (i = 0; i < sz; i+=4)
|
||||
_mesa_printf("curbe %d.%d: %f %f %f %f\n", i/8, i&4,
|
||||
buf[i+0], buf[i+1], buf[i+2], buf[i+3]);
|
||||
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ static int aub_buffer_data(struct pipe_winsys *winsys,
|
|||
sbo->size = size;
|
||||
|
||||
if (data != NULL) {
|
||||
memcpy(iws->pool, data, size);
|
||||
memcpy(sbo->data, data, size);
|
||||
|
||||
brw_aub_gtt_data( iws->aubfile,
|
||||
sbo->offset,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue