summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/amdgpu
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-01-26 03:48:37 +0100
committerMarek Olšák <[email protected]>2018-01-26 23:12:11 +0100
commit17423c993d0b083c7a77a404b85788687f5efe36 (patch)
tree27248bd6b98f9bc170c49db8bd261fcd1e6e45f7 /src/gallium/winsys/amdgpu
parentac0e9e343c0c009875be186f90c951d5465b5371 (diff)
winsys/amdgpu: fix assertion failure with UVD and VCE rings
Cc: 18.0 <[email protected]>
Diffstat (limited to 'src/gallium/winsys/amdgpu')
-rw-r--r--src/gallium/winsys/amdgpu/drm/amdgpu_cs.c3
1 files changed, 1 insertions, 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;