From 365f38f3dfef292c4917e10cdf3011f22f37dc51 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 25 Jul 2013 09:27:09 -0600 Subject: softpipe: use new softpipe_resource_data() accessor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/gallium/drivers/softpipe/sp_state_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/softpipe/sp_state_shader.c') 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; -- cgit v1.2.3