mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-10 14:07:25 +00:00
Another check on feedback loop
This commit is contained in:
@@ -876,6 +876,8 @@ void BlockLinearUnswizzle3DPass::UnswizzleChunk(
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
constexpr u32 UNSWIZZLE_BINDING_INPUT_BUFFER = 0;
|
constexpr u32 UNSWIZZLE_BINDING_INPUT_BUFFER = 0;
|
||||||
constexpr u32 UNSWIZZLE_BINDING_OUTPUT_IMAGE = 1;
|
constexpr u32 UNSWIZZLE_BINDING_OUTPUT_IMAGE = 1;
|
||||||
constexpr size_t UNSWIZZLE_NUM_BINDINGS = 2;
|
constexpr size_t UNSWIZZLE_NUM_BINDINGS = 2;
|
||||||
@@ -1010,6 +1012,8 @@ void RecordUnswizzleExitBarrier(Scheduler& scheduler, VkImage vk_image,
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // Anonymous namespace
|
||||||
|
|
||||||
BlockLinearUnswizzle2DPass::BlockLinearUnswizzle2DPass(
|
BlockLinearUnswizzle2DPass::BlockLinearUnswizzle2DPass(
|
||||||
const Device& device_, Scheduler& scheduler_, DescriptorPool& descriptor_pool_,
|
const Device& device_, Scheduler& scheduler_, DescriptorPool& descriptor_pool_,
|
||||||
ComputePassDescriptorQueue& compute_pass_descriptor_queue_)
|
ComputePassDescriptorQueue& compute_pass_descriptor_queue_)
|
||||||
|
|||||||
@@ -279,11 +279,11 @@ void TextureCache<P>::CheckFeedbackLoop(std::span<const ImageViewInOut> views) {
|
|||||||
|
|
||||||
const ImageId view_image_id = slot_image_views[view.id].image_id;
|
const ImageId view_image_id = slot_image_views[view.id].image_id;
|
||||||
{
|
{
|
||||||
bool is_continue = false;
|
bool is_feedback = false;
|
||||||
for (size_t i = 0; i < 8; ++i)
|
for (size_t i = 0; i < 8; ++i)
|
||||||
is_continue |= (rt_active_mask & (1u << i)) && view_image_id == rt_image_id[i];
|
is_feedback |= (rt_active_mask & (1u << i)) && view_image_id == rt_image_id[i];
|
||||||
if (is_continue)
|
if (is_feedback)
|
||||||
continue;
|
return true;
|
||||||
}
|
}
|
||||||
if (depth_active && view_image_id == rt_depth_image_id) {
|
if (depth_active && view_image_id == rt_depth_image_id) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user