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/noop/noop_pipe.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/noop/noop_pipe.c') diff --git a/src/gallium/drivers/noop/noop_pipe.c b/src/gallium/drivers/noop/noop_pipe.c index e47f944b59b..e63263a0e0c 100644 --- a/src/gallium/drivers/noop/noop_pipe.c +++ b/src/gallium/drivers/noop/noop_pipe.c @@ -156,6 +156,7 @@ static struct pipe_resource *noop_user_buffer_create(struct pipe_screen *screen, templ.height0 = 1; templ.depth0 = 1; templ.flags = 0; + templ.user_ptr = ptr; return noop_resource_create(screen, &templ); } -- cgit v1.2.3