X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fradeonsi%2Fsi_uvd.c;h=2f10f9ba813acb04ce26376336a9deab20544761;hb=b9dad585e66b1031bdcbb148a19524ee2705baf7;hp=9f25cd6b09a273e27c785c408595b5f7eeb5878b;hpb=9ff0cf903dc4ed806961d1e099d1308322092892;p=mesa.git diff --git a/src/gallium/drivers/radeonsi/si_uvd.c b/src/gallium/drivers/radeonsi/si_uvd.c index 9f25cd6b09a..2f10f9ba813 100644 --- a/src/gallium/drivers/radeonsi/si_uvd.c +++ b/src/gallium/drivers/radeonsi/si_uvd.c @@ -44,7 +44,7 @@ struct pipe_video_buffer *si_video_buffer_create(struct pipe_context *pipe, { struct si_context *ctx = (struct si_context *)pipe; struct r600_texture *resources[VL_NUM_COMPONENTS] = {}; - struct radeon_surface *surfaces[VL_NUM_COMPONENTS] = {}; + struct radeon_surf *surfaces[VL_NUM_COMPONENTS] = {}; struct pb_buffer **pbs[VL_NUM_COMPONENTS] = {}; const enum pipe_format *resource_formats; struct pipe_video_buffer template; @@ -106,6 +106,8 @@ struct pipe_video_buffer *si_video_buffer_create(struct pipe_context *pipe, /* recreate the CS handle */ resources[i]->resource.cs_buf = ctx->b.ws->buffer_get_cs_handle( resources[i]->resource.buf); + resources[i]->resource.gpu_address = ctx->b.ws->buffer_get_virtual_address( + resources[i]->resource.cs_buf); } template.height *= array_size; @@ -134,7 +136,7 @@ static struct radeon_winsys_cs_handle* si_uvd_set_dtb(struct ruvd_msg *msg, stru /* get the radeon resources for VCE */ static void si_vce_get_buffer(struct pipe_resource *resource, struct radeon_winsys_cs_handle **handle, - struct radeon_surface **surface) + struct radeon_surf **surface) { struct r600_texture *res = (struct r600_texture *)resource;