Skip to content

Commit 4e920ed

Browse files
committed
vk: fix broken iblprefilter path (#9019)
The issue is that we need to reset the bound info in VulkanDescriptorSetCache when the current command buffer completes recording.
1 parent db6baed commit 4e920ed

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

filament/backend/src/vulkan/VulkanDescriptorSetCache.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ class VulkanDescriptorSetCache {
8787

8888
void gc();
8989

90+
void resetCachedState() noexcept { mLastBoundInfo = {}; }
91+
9092
private:
9193
void updateSamplerImpl(VkDescriptorSet set, uint8_t binding,
9294
fvkmemory::resource_ptr<VulkanTexture> texture, VkSampler sampler) noexcept;

filament/backend/src/vulkan/VulkanDriver.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,6 +2061,7 @@ void VulkanDriver::setDebugTag(HandleBase::HandleId handleId, utils::CString tag
20612061
void VulkanDriver::endCommandRecording() {
20622062
mCommands.flush();
20632063
mPipelineCache.resetBoundPipeline();
2064+
mDescriptorSetCache.resetCachedState();
20642065
}
20652066

20662067
// explicit instantiation of the Dispatcher

0 commit comments

Comments
 (0)