Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d75d4cdb authored by Hareesh Gundu's avatar Hareesh Gundu Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Disable VPC all flat shading optimization for A5XX



Set ALLFLATOPTDIS bit in A5XX_VPC_DBG_ECO_CNTL register to
disable VPC all flat shading optimization. ALLFLATOPTDIS is
a hardware chicken bit value needs to be set one, to avoid
UI rendering corruption.

Change-Id: I39b5ad098daacbb1c3b0fc93963d82d477f70cc1
Signed-off-by: default avatarHareesh Gundu <hareeshg@codeaurora.org>
parent 4f02bef8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2026,6 +2026,9 @@ static void a5xx_start(struct adreno_device *adreno_dev)

	}

	/* Disable All flat shading optimization */
	kgsl_regrmw(device, A5XX_VPC_DBG_ECO_CNTL, 0, 0x1 << 10);

	/*
	 * VPC corner case with local memory load kill leads to corrupt
	 * internal state. Normal Disable does not work for all a5x chips.