From: Marek Olšák Date: Tue, 29 Oct 2013 23:22:01 +0000 (+0100) Subject: winsys/radeon: use type-3 NOPs for CS padding on CIK X-Git-Tag: upstream/10.0.5~425 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e438194757fb7e013ea039dfddd75ae469d8164;p=platform%2Fupstream%2Fmesa.git winsys/radeon: use type-3 NOPs for CS padding on CIK The type-2 NOPs are said to be unstable. It doesn't make a difference here. --- diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c index e5723a5..acb12b2 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c @@ -491,8 +491,13 @@ static void radeon_drm_cs_flush(struct radeon_winsys_cs *rcs, unsigned flags, ui OUT_CS(&cs->base, 0xffff1000); /* type3 nop packet */ } } else { - while (rcs->cdw & 7) - OUT_CS(&cs->base, 0x80000000); /* type2 nop packet */ + if (cs->ws->info.chip_class <= SI) { + while (rcs->cdw & 7) + OUT_CS(&cs->base, 0x80000000); /* type2 nop packet */ + } else { + while (rcs->cdw & 7) + OUT_CS(&cs->base, 0xffff1000); /* type3 nop packet */ + } } break; case RING_UVD: