diff options
author | Brian Paul <[email protected]> | 2013-07-25 09:27:09 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-07-31 06:53:48 -0600 |
commit | 365f38f3dfef292c4917e10cdf3011f22f37dc51 (patch) | |
tree | 770ab210297c6784f6db015893da20c1ae5506e3 /src/gallium/drivers/softpipe/sp_state_shader.c | |
parent | 99c42d11a245d6709b33353c2d88e2640f6d101e (diff) |
softpipe: use new softpipe_resource_data() accessor
We should probably be using map()/unmap() when accessing resource
data, but this is a little better.
v2: assert that the resource is not a display target, per Jose.
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_state_shader.c')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_state_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_state_shader.c b/src/gallium/drivers/softpipe/sp_state_shader.c index d80955e696c..eb4b6b1458c 100644 --- a/src/gallium/drivers/softpipe/sp_state_shader.c +++ b/src/gallium/drivers/softpipe/sp_state_shader.c @@ -357,7 +357,7 @@ softpipe_set_constant_buffer(struct pipe_context *pipe, } size = cb ? cb->buffer_size : 0; - data = constants ? softpipe_resource(constants)->data : NULL; + data = constants ? softpipe_resource_data(constants) : NULL; if (data) data = (const char *) data + cb->buffer_offset; |