diff options
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_streamout.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_streamout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/virgl/virgl_streamout.c b/src/gallium/drivers/virgl/virgl_streamout.c index c3cbcffc193..c449010e40e 100644 --- a/src/gallium/drivers/virgl/virgl_streamout.c +++ b/src/gallium/drivers/virgl/virgl_streamout.c @@ -33,7 +33,7 @@ static struct pipe_stream_output_target *virgl_create_so_target( unsigned buffer_size) { struct virgl_context *vctx = virgl_context(ctx); - struct virgl_resource *res = (struct virgl_resource *)buffer; + struct virgl_resource *res = virgl_resource(buffer); struct virgl_so_target *t = CALLOC_STRUCT(virgl_so_target); uint32_t handle; |