[Mesa-dev] [PATCH] winsys/amdgpu: Set RADEON_FLAG_GTT_WC for UVD buffer
Marek Olšák
maraeo at gmail.com
Fri Jan 26 12:12:41 UTC 2018
Hi Christoph,
Can you test this patch instead?
Thanks,
Marek
On Fri, Jan 19, 2018 at 3:24 PM, Christoph Haag <haagch at frickel.club> wrote:
> without this flag, it fails an assertion
> with assertions disabled it retries with this flag set
> ---
> src/gallium/winsys/amdgpu/drm/amdgpu_cs.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
> index 63cd63287f..515d30a959 100644
> --- a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
> +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
> @@ -652,7 +652,8 @@ static bool amdgpu_ib_new_buffer(struct amdgpu_winsys *ws, struct amdgpu_ib *ib,
> RADEON_FLAG_READ_ONLY |
> (ring_type == RING_GFX ||
> ring_type == RING_COMPUTE ||
> - ring_type == RING_DMA ?
> + ring_type == RING_DMA ||
> + ring_type == RING_UVD ?
> RADEON_FLAG_GTT_WC : 0));
> if (!pb)
> return false;
> --
> 2.16.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix.patch
Type: text/x-patch
Size: 1233 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180126/f1c77bae/attachment.bin>
More information about the mesa-dev
mailing list