From 1a1cc67edd4c1ae08b739adaf78e014b828908de Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 15 Jul 2016 01:15:42 +0200 Subject: gallium/radeon: remove RADEON_FLUSH_KEEP_TILING_FLAGS flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit always set Reviewed-by: Nicolai Hähnle --- src/gallium/winsys/radeon/drm/radeon_drm_cs.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/gallium/winsys/radeon') diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c index 15c3e5cd0d0..606c38d119d 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c @@ -563,13 +563,10 @@ static int radeon_drm_cs_flush(struct radeon_winsys_cs *rcs, default: case RING_GFX: case RING_COMPUTE: - cs->cst->flags[0] = 0; + cs->cst->flags[0] = RADEON_CS_KEEP_TILING_FLAGS; cs->cst->flags[1] = RADEON_CS_RING_GFX; - cs->cst->cs.num_chunks = 2; - if (flags & RADEON_FLUSH_KEEP_TILING_FLAGS) { - cs->cst->flags[0] |= RADEON_CS_KEEP_TILING_FLAGS; - cs->cst->cs.num_chunks = 3; - } + cs->cst->cs.num_chunks = 3; + if (cs->ws->info.has_virtual_memory) { cs->cst->flags[0] |= RADEON_CS_USE_VM; cs->cst->cs.num_chunks = 3; -- cgit v1.2.3