[Mesa-dev] [PATCH] winsys/amdgpu: Set RADEON_FLAG_GTT_WC for UVD buffer

Christoph Haag haagch at frickel.club
Fri Jan 19 14:24:11 UTC 2018


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



More information about the mesa-dev mailing list