summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/file_environment.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-07-18 00:44:32 -0300
committerGravatar ReinUsesLisp2021-07-18 01:15:48 -0300
commit6d9f347e22d3b198ff8f623d1efafcf7dae27321 (patch)
tree8ccc2e8e07c73300cba5828c78b61052a8ba47b6 /src/shader_recompiler/file_environment.cpp
parentMerge pull request #6647 from lat9nq/specify-system-path (diff)
downloadyuzu-6d9f347e22d3b198ff8f623d1efafcf7dae27321.tar.gz
yuzu-6d9f347e22d3b198ff8f623d1efafcf7dae27321.tar.xz
yuzu-6d9f347e22d3b198ff8f623d1efafcf7dae27321.zip
texture_cache/util: Fix size calculations of multisampled images
On the texture cache we handle multisampled images by keeping their real size in samples (e.g. 1920x1080 with 4 samples is 3840x2160). This works nicely with size matches and other comparisons, but the calculation for guest sizes was not having this in mind, and the size was being multiplied (again) by the number of samples per dimension. For example a 3840x2160 texture cache image had its width and height multiplied by 2, resulting in a much larger texture. Fix this issue. - Fixes performance regression on cooking related titles when an unrelated bug was fixed.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions