early-access version 3733

This commit is contained in:
pineappleEA 2023-07-02 11:09:08 +02:00
parent 158e270fe0
commit b6dd7c493f
2 changed files with 9 additions and 5 deletions

View File

@ -1,7 +1,7 @@
yuzu emulator early access yuzu emulator early access
============= =============
This is the source code for early-access 3732. This is the source code for early-access 3733.
## Legal Notice ## Legal Notice

View File

@ -865,11 +865,15 @@ void TextureCache<P>::PopAsyncFlushes() {
template <class P> template <class P>
ImageId TextureCache<P>::DmaImageId(const Tegra::DMA::ImageOperand& operand, bool is_upload) { ImageId TextureCache<P>::DmaImageId(const Tegra::DMA::ImageOperand& operand, bool is_upload) {
const ImageInfo dst_info(operand); const ImageInfo dst_info(operand);
const ImageId image_id = FindDMAImage(dst_info, operand.address); const ImageId dst_id = FindDMAImage(dst_info, operand.address);
if (!image_id) { if (!dst_id) {
return NULL_IMAGE_ID;
}
auto& image = slot_images[dst_id];
if (False(image.flags & ImageFlagBits::GpuModified)) {
// No need to waste time on an image that's synced with guest
return NULL_IMAGE_ID; return NULL_IMAGE_ID;
} }
auto& image = slot_images[image_id];
if (image.info.type == ImageType::e3D) { if (image.info.type == ImageType::e3D) {
// Don't accelerate 3D images. // Don't accelerate 3D images.
return NULL_IMAGE_ID; return NULL_IMAGE_ID;
@ -883,7 +887,7 @@ ImageId TextureCache<P>::DmaImageId(const Tegra::DMA::ImageOperand& operand, boo
if (!base) { if (!base) {
return NULL_IMAGE_ID; return NULL_IMAGE_ID;
} }
return image_id; return dst_id;
} }
template <class P> template <class P>