diff options
author | Marek Olšák <[email protected]> | 2018-04-08 21:53:25 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-04-27 17:56:04 -0400 |
commit | 788d66553af418d3a195b58c3debd87a40f8174c (patch) | |
tree | 11ce5a6780896f615ab7291b8514fe0ad96248ca /src/gallium/drivers/radeonsi/si_uvd.c | |
parent | 6fadfc01c6f1600de89e8cd74f2ba78f503b5e6b (diff) |
radeonsi: rename r600_texture::resource to buffer
r600_resource could be renamed to si_buffer.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_uvd.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_uvd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_uvd.c b/src/gallium/drivers/radeonsi/si_uvd.c index 4165725b0e9..ee8ed58b401 100644 --- a/src/gallium/drivers/radeonsi/si_uvd.c +++ b/src/gallium/drivers/radeonsi/si_uvd.c @@ -84,7 +84,7 @@ struct pipe_video_buffer *si_video_buffer_create(struct pipe_context *pipe, continue; surfaces[i] = & resources[i]->surface; - pbs[i] = &resources[i]->resource.buf; + pbs[i] = &resources[i]->buffer.buf; } si_vid_join_surfaces(ctx, pbs, surfaces); @@ -94,8 +94,8 @@ struct pipe_video_buffer *si_video_buffer_create(struct pipe_context *pipe, continue; /* reset the address */ - resources[i]->resource.gpu_address = ctx->ws->buffer_get_virtual_address( - resources[i]->resource.buf); + resources[i]->buffer.gpu_address = ctx->ws->buffer_get_virtual_address( + resources[i]->buffer.buf); } vidtemplate.height *= array_size; @@ -122,7 +122,7 @@ static struct pb_buffer* si_uvd_set_dtb(struct ruvd_msg *msg, struct vl_video_bu si_uvd_set_dt_surfaces(msg, &luma->surface, (chroma) ? &chroma->surface : NULL, type); - return luma->resource.buf; + return luma->buffer.buf; } /* get the radeon resources for VCE */ @@ -133,7 +133,7 @@ static void si_vce_get_buffer(struct pipe_resource *resource, struct r600_texture *res = (struct r600_texture *)resource; if (handle) - *handle = res->resource.buf; + *handle = res->buffer.buf; if (surface) *surface = &res->surface; |