gallium/radeon: make it clear that DRM 2.x.x fast clear constraint is CIK-only
authorMarek Olšák <marek.olsak@amd.com>
Wed, 26 Oct 2016 22:14:16 +0000 (00:14 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 1 Nov 2016 21:33:13 +0000 (22:33 +0100)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_texture.c

index 6c8d5a7c103c1acbfde80de91b7a037737191687..7ced41c7759dc1fdb0fbedba8ce217e63d97b96d 100644 (file)
@@ -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;