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

Commit dec0aecf authored by Lynus Vaz's avatar Lynus Vaz Committed by Archana Obannagari
Browse files

msm: kgsl: Capture all the shader data in the snapshot



The shader block size is in dwords. Make sure we copy out all the
bytes that we want.

Change-Id: I42364350ee6314b4830ed11cc06e61d854122543
Signed-off-by: default avatarLynus Vaz <lvaz@codeaurora.org>
Signed-off-by: default avatarArchana Obannagari <aobann@codeaurora.org>
parent c414a49e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -619,7 +619,8 @@ static size_t a5xx_snapshot_shader_memory(struct kgsl_device *device,
	header->index = info->bank;
	header->size = block->sz;

	memcpy(data, registers.hostptr + info->offset, block->sz);
	memcpy(data, registers.hostptr + info->offset,
		block->sz * sizeof(unsigned int));

	return SHADER_SECTION_SZ(block->sz);
}