Browse Source
Merge pull request #10956 from FernandoS27/pikmin-another-game-ill-hate
AccelerateDMA: Don't accelerate 3D texture DMA operations
pull/15/merge
Fernando S
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
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; |
|
|
return NULL_IMAGE_ID; |
|
|
} |
|
|
} |
|
|
auto& image = slot_images[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) { |
|
|
if (!is_upload && !image.info.dma_downloaded) { |
|
|
// Force a full sync. |
|
|
// Force a full sync. |
|
|
image.info.dma_downloaded = true; |
|
|
image.info.dma_downloaded = true; |
|
|
|