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

Commit 73acf0b6 authored by Kyle Piefer's avatar Kyle Piefer
Browse files

msm: kgsl: Do not set up the zap shader



The zap shader is not currently supported, so
do not set it up.

Change-Id: I0c0706ca775b9a151d92284871e138ebd03de77b
Signed-off-by: default avatarKyle Piefer <kpiefer@codeaurora.org>
parent 34bcc8f7
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -971,7 +971,6 @@ static int a6xx_microcode_load(struct adreno_device *adreno_dev)
	struct kgsl_device *device = KGSL_DEVICE(adreno_dev);
	struct adreno_firmware *fw = ADRENO_FW(adreno_dev, ADRENO_FW_SQE);
	uint64_t gpuaddr;
	void *zap;
	int ret = 0;

	gpuaddr = fw->memdesc.gpuaddr;
@@ -979,19 +978,6 @@ static int a6xx_microcode_load(struct adreno_device *adreno_dev)
				lower_32_bits(gpuaddr));
	kgsl_regwrite(device, A6XX_CP_SQE_INSTR_BASE_HI,
				upper_32_bits(gpuaddr));

	/* Load the zap shader firmware through PIL if its available */
	if (adreno_dev->gpucore->zap_name && !adreno_dev->zap_loaded) {
		zap = subsystem_get(adreno_dev->gpucore->zap_name);

		/* Return error if the zap shader cannot be loaded */
		if (IS_ERR_OR_NULL(zap)) {
			ret = (zap == NULL) ? -ENODEV : PTR_ERR(zap);
			zap = NULL;
		} else
			adreno_dev->zap_loaded = 1;
	}

	return ret;
}