gallium/radeon: remove build_intrinsic and build_tgsi_intrinsic
[mesa.git] / src / gallium / drivers / radeonsi / si_uvd.c
index 9f25cd6b09a273e27c785c408595b5f7eeb5878b..2f10f9ba813acb04ce26376336a9deab20544761 100644 (file)
@@ -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;