From: Marek Olšák Date: Wed, 26 Oct 2016 22:14:16 +0000 (+0200) Subject: gallium/radeon: make it clear that DRM 2.x.x fast clear constraint is CIK-only X-Git-Tag: upstream/17.1.0~5071 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a4e0162fc5b2f54bc1db1cd7914200ccac506f1;p=platform%2Fupstream%2Fmesa.git gallium/radeon: make it clear that DRM 2.x.x fast clear constraint is CIK-only Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 6c8d5a7..7ced41c 100644 --- a/src/gallium/drivers/radeon/r600_texture.c +++ b/src/gallium/drivers/radeon/r600_texture.c @@ -2457,8 +2457,8 @@ void evergreen_do_fast_color_clear(struct r600_common_context *rctx, continue; /* fast color clear with 1D tiling doesn't work on old kernels and CIK */ - if (tex->surface.level[0].mode == RADEON_SURF_MODE_1D && - rctx->chip_class >= CIK && + if (rctx->chip_class == CIK && + tex->surface.level[0].mode == RADEON_SURF_MODE_1D && rctx->screen->info.drm_major == 2 && rctx->screen->info.drm_minor < 38) { continue;