radeon/uvd: fix gpu_address for video surfaces
We need to get the new gpu_address as well when reallocating the cs buffer. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=82428 Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Tested-by: Kai Wasserbäch <kai@dev.carbon-project.org>
This commit is contained in:
parent
3b48f6a4c0
commit
83012b5085
|
@ -121,6 +121,8 @@ struct pipe_video_buffer *r600_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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue