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

Skip to content
Commit cdf175a6 authored by Jordan Crouse's avatar Jordan Crouse Committed by Harshdeep Dhatt
Browse files

msm: kgsl: Only access and map the shadermem for a3xx snapshot



The "kgsl_3d0_shader_mem" resource is only used for a3xx snapshot, yet
we check for it and print a message on every single target. Luckily we
were already mapping the object on demand in the snapshot code so it
is easy enough to move the resource check there as well (and use one of
the fancy new devm_ functions to boot).

While we are kicking around in there, we don't need a special regread
function for shadermem because memcpy_fromio does the same task in
a better way. Removing the regread gives us the chance to tighten
the adreno_regread code to our benefit as well.

Change-Id: Ic0dedbadd93d4f96528e9e75a1325c37a5b0ea90
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: default avatarHarshdeep Dhatt <hdhatt@codeaurora.org>
parent 66e38d99
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment