cell: compile fix: pipe_constant_buffer no longer has size field
authorBrian Paul <brianp@vmware.com>
Sat, 7 Feb 2009 20:01:02 +0000 (13:01 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 7 Feb 2009 20:01:02 +0000 (13:01 -0700)
src/gallium/drivers/cell/ppu/cell_state_emit.c
src/gallium/drivers/cell/ppu/cell_state_shader.c

index 39b85faeb868b41c16378c46a4dad654e7a5a4b7..ff529fe22cbda83765a165ea151f7ec8fecbadb3 100644 (file)
@@ -239,7 +239,7 @@ cell_emit_state(struct cell_context *cell)
 
    if (cell->dirty & (CELL_NEW_FS_CONSTANTS)) {
       const uint shader = PIPE_SHADER_FRAGMENT;
-      const uint num_const = cell->constants[shader].size / sizeof(float);
+      const uint num_const = cell->constants[shader].buffer->size / sizeof(float);
       uint i, j;
       float *buf = cell_batch_alloc16(cell, ROUNDUP16(32 + num_const * sizeof(float)));
       uint32_t *ibuf = (uint32_t *) buf;
index 990f23e170e95491132051569ad1bcf5dd6adb0f..4914a27db359d9a1a9437c653a530b7b7bcef21c 100644 (file)
@@ -197,7 +197,6 @@ cell_set_constant_buffer(struct pipe_context *pipe,
    pipe_buffer_reference(pipe->screen,
                          &cell->constants[shader].buffer,
                          buf->buffer);
-   cell->constants[shader].size = buf->size;
 
    if (shader == PIPE_SHADER_VERTEX)
       cell->dirty |= CELL_NEW_VS_CONSTANTS;