early-access version 2249

This commit is contained in:
pineappleEA 2021-11-28 01:00:11 +01:00
parent 58fe367da6
commit a657cf53a1
2 changed files with 5 additions and 8 deletions

View File

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

View File

@ -725,11 +725,7 @@ ImageViewId TextureCache<P>::CreateImageView(const TICEntry& config) {
} }
const u32 layer_offset = config.BaseLayer() * info.layer_stride; const u32 layer_offset = config.BaseLayer() * info.layer_stride;
const GPUVAddr image_gpu_addr = config.Address() - layer_offset; const GPUVAddr image_gpu_addr = config.Address() - layer_offset;
ImageId image_id{}; const ImageId image_id = FindOrInsertImage(info, image_gpu_addr);
do {
has_deleted_images = false;
image_id = FindOrInsertImage(info, image_gpu_addr);
} while (has_deleted_images);
if (!image_id) { if (!image_id) {
return NULL_IMAGE_VIEW_ID; return NULL_IMAGE_VIEW_ID;
} }
@ -1204,10 +1200,11 @@ ImageViewId TextureCache<P>::FindRenderTargetView(const ImageInfo& info, GPUVAdd
bool is_clear) { bool is_clear) {
const auto options = is_clear ? RelaxedOptions::Samples : RelaxedOptions{}; const auto options = is_clear ? RelaxedOptions::Samples : RelaxedOptions{};
ImageId image_id{}; ImageId image_id{};
bool delete_state = false;
do { do {
has_deleted_images = false; delete_state = has_deleted_images;
image_id = FindOrInsertImage(info, gpu_addr, options); image_id = FindOrInsertImage(info, gpu_addr, options);
} while (has_deleted_images); } while (delete_state != has_deleted_images);
if (!image_id) { if (!image_id) {
return NULL_IMAGE_VIEW_ID; return NULL_IMAGE_VIEW_ID;
} }