diff options
Diffstat (limited to 'src/gallium/drivers/r600/r600_buffer.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_buffer.c b/src/gallium/drivers/r600/r600_buffer.c index 4708d0154ca..440af5622fa 100644 --- a/src/gallium/drivers/r600/r600_buffer.c +++ b/src/gallium/drivers/r600/r600_buffer.c @@ -222,6 +222,7 @@ struct pipe_resource *r600_buffer_create(struct pipe_screen *screen, rbuffer->b.b.b = *templ; pipe_reference_init(&rbuffer->b.b.b.reference, 1); rbuffer->b.b.b.screen = screen; + rbuffer->b.b.b.user_ptr = NULL; rbuffer->b.b.vtbl = &r600_buffer_vtbl; rbuffer->b.user_ptr = NULL; @@ -253,6 +254,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; |