summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorFernando S <fsahmkow27@gmail.com>2023-06-30 09:37:07 +0200
committerGitHub <noreply@github.com>2023-06-30 09:37:07 +0200
commit9252ad4e1091eaa0d9865c6a212feaac20d13918 (patch)
treeea4938aef5deda3f8a9bbd00d5cf008c00c66e58 /src/video_core
parentMerge pull request #10955 from 8bitDream/gradle (diff)
parentAccelerateDMA: Don't accelerate 3D texture DMA operations (diff)
downloadyuzu-9252ad4e1091eaa0d9865c6a212feaac20d13918.tar
yuzu-9252ad4e1091eaa0d9865c6a212feaac20d13918.tar.gz
yuzu-9252ad4e1091eaa0d9865c6a212feaac20d13918.tar.bz2
yuzu-9252ad4e1091eaa0d9865c6a212feaac20d13918.tar.lz
yuzu-9252ad4e1091eaa0d9865c6a212feaac20d13918.tar.xz
yuzu-9252ad4e1091eaa0d9865c6a212feaac20d13918.tar.zst
yuzu-9252ad4e1091eaa0d9865c6a212feaac20d13918.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/texture_cache/texture_cache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index d3f03a995..0330415b7 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -879,6 +879,10 @@ ImageId TextureCache<P>::DmaImageId(const Tegra::DMA::ImageOperand& operand, boo
return NULL_IMAGE_ID;
}
auto& image = slot_images[image_id];
+ if (image.info.type == ImageType::e3D) {
+ // Don't accelerate 3D images.
+ return NULL_IMAGE_ID;
+ }
if (!is_upload && !image.info.dma_downloaded) {
// Force a full sync.
image.info.dma_downloaded = true;