From e8ab3b1ce76dddca7b591b9ce21836ab36995653 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 10 Apr 2012 04:33:23 +0200 Subject: gallium: add user_ptr in pipe_resource I need to access the pointer in st/mesa when I only have pipe_resource. --- src/gallium/drivers/radeonsi/r600_buffer.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/radeonsi/r600_buffer.c') diff --git a/src/gallium/drivers/radeonsi/r600_buffer.c b/src/gallium/drivers/radeonsi/r600_buffer.c index bb885df8dcd..fa31afadaea 100644 --- a/src/gallium/drivers/radeonsi/r600_buffer.c +++ b/src/gallium/drivers/radeonsi/r600_buffer.c @@ -232,6 +232,7 @@ struct pipe_resource *r600_user_buffer_create(struct pipe_screen *screen, rbuffer->b.b.b.depth0 = 1; rbuffer->b.b.b.array_size = 1; rbuffer->b.b.b.flags = 0; + rbuffer->b.b.b.user_ptr = ptr; rbuffer->b.user_ptr = ptr; rbuffer->buf = NULL; return &rbuffer->b.b.b; -- cgit v1.2.3