winsys/amdgpu: fix assertion failure with UVD and VCE rings
authorMarek Olšák <marek.olsak@amd.com>
Fri, 26 Jan 2018 02:48:37 +0000 (03:48 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 26 Jan 2018 22:12:11 +0000 (23:12 +0100)
Cc: 18.0 <mesa-stable@lists.freedesktop.org>
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c

index 0c778534606d7485ebd06c375e7bab1f73b8e0f0..66ba23d23195d74a108f548bce15a07b8e07d25d 100644 (file)
@@ -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;