diff options
author | Corbin Simpson <[email protected]> | 2009-08-07 19:46:52 -0700 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2009-08-07 20:50:42 -0700 |
commit | c58133b81ab7c9ee12cac05c4671a87e34708a66 (patch) | |
tree | 331fc2de6b6c09e8341882b4f2efc115cd161581 /src/gallium/drivers/r300/r300_state.c | |
parent | a962c07cc3e5fba3be5c08071bc7abc5d840f138 (diff) |
r300g: Remove r300_constant_buffer::user_count.
Not needed with new compiler.
Diffstat (limited to 'src/gallium/drivers/r300/r300_state.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_state.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index bb4b4be50fb..a02fb34b2a7 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -138,7 +138,6 @@ static void const struct pipe_constant_buffer* buffer) { struct r300_context* r300 = r300_context(pipe); - int i = r300->shader_constants[shader].user_count; /* This entire chunk of code seems ever-so-slightly baked. * It's as if I've got pipe_buffer* matryoshkas... */ @@ -149,10 +148,10 @@ static void map, buffer->buffer->size); pipe->winsys->buffer_unmap(pipe->winsys, buffer->buffer); - r300->shader_constants[shader].user_count = + r300->shader_constants[shader].count = buffer->buffer->size / (sizeof(float) * 4); } else { - r300->shader_constants[shader].user_count = 0; + r300->shader_constants[shader].count = 0; } r300->dirty_state |= R300_NEW_CONSTANTS; |