Module: Mesa
Branch: gallium-0.2
Commit: 830e320e2ad9a3918d867d8233c25bb2c54fa55a
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=830e320e2ad9a3918d867d8233c25bb2c54fa55a

Author: Brian Paul <[email protected]>
Date:   Sat Feb  7 13:01:02 2009 -0700

cell: compile fix: pipe_constant_buffer no longer has size field

---

 src/gallium/drivers/cell/ppu/cell_state_emit.c   |    2 +-
 src/gallium/drivers/cell/ppu/cell_state_shader.c |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/cell/ppu/cell_state_emit.c 
b/src/gallium/drivers/cell/ppu/cell_state_emit.c
index 39b85fa..ff529fe 100644
--- a/src/gallium/drivers/cell/ppu/cell_state_emit.c
+++ b/src/gallium/drivers/cell/ppu/cell_state_emit.c
@@ -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;
diff --git a/src/gallium/drivers/cell/ppu/cell_state_shader.c 
b/src/gallium/drivers/cell/ppu/cell_state_shader.c
index 990f23e..4914a27 100644
--- a/src/gallium/drivers/cell/ppu/cell_state_shader.c
+++ b/src/gallium/drivers/cell/ppu/cell_state_shader.c
@@ -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;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to