From 17423c993d0b083c7a77a404b85788687f5efe36 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 26 Jan 2018 03:48:37 +0100 Subject: [PATCH] winsys/amdgpu: fix assertion failure with UVD and VCE rings Cc: 18.0 --- src/gallium/winsys/amdgpu/drm/amdgpu_cs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c index 0c778534606..66ba23d2319 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c @@ -670,11 +670,10 @@ static bool amdgpu_ib_new_buffer(struct amdgpu_winsys *ws, struct amdgpu_ib *ib, ws->info.gart_page_size, RADEON_DOMAIN_GTT, RADEON_FLAG_NO_INTERPROCESS_SHARING | - RADEON_FLAG_READ_ONLY | (ring_type == RING_GFX || ring_type == RING_COMPUTE || ring_type == RING_DMA ? - RADEON_FLAG_GTT_WC : 0)); + RADEON_FLAG_READ_ONLY | RADEON_FLAG_GTT_WC : 0)); if (!pb) return false; -- 2.30.2