summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_pipe_constants.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/svga/svga_pipe_constants.c')
-rw-r--r--src/gallium/drivers/svga/svga_pipe_constants.c6
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;