diff options
author | Brian Paul <[email protected]> | 2014-02-08 09:51:14 -0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-02-14 08:21:44 -0700 |
commit | 2f1fc8db108eb771414aa5440d4c439f63f4e7c1 (patch) | |
tree | f8e935b4b34d11e41a6b1ed87d05d09f584ea199 /src/gallium/drivers/svga/svga_pipe_constants.c | |
parent | 31dfefc47f9f12c49fd3cfb27ba4fe384cb60380 (diff) |
svga: update constant buffer code for GBS
Reviewed-by: Thomas Hellstrom <[email protected]>
Cc: "10.1" <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_pipe_constants.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_pipe_constants.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_constants.c b/src/gallium/drivers/svga/svga_pipe_constants.c index cfa823b345d..c32b66d416b 100644 --- a/src/gallium/drivers/svga/svga_pipe_constants.c +++ b/src/gallium/drivers/svga/svga_pipe_constants.c @@ -61,8 +61,10 @@ static void svga_set_constant_buffer(struct pipe_context *pipe, assert(shader < PIPE_SHADER_TYPES); assert(index == 0); - pipe_resource_reference( &svga->curr.cb[shader], - buf ); + pipe_resource_reference(&svga->curr.cbufs[shader].buffer, buf); + svga->curr.cbufs[shader].buffer_size = cb ? cb->buffer_size : 0; + svga->curr.cbufs[shader].buffer_offset = cb ? cb->buffer_offset : 0; + svga->curr.cbufs[shader].user_buffer = NULL; /* not used */ if (shader == PIPE_SHADER_FRAGMENT) svga->dirty |= SVGA_NEW_FS_CONST_BUFFER; |