mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-23 08:19:17 +01:00
Mark newly allocated descriptor slots as active
This commit is contained in:
parent
0867c593be
commit
78ddd03d1f
@ -116,7 +116,9 @@ namespace skyline::gpu {
|
|||||||
auto set{AllocateVkDescriptorSet(layout)};
|
auto set{AllocateVkDescriptorSet(layout)};
|
||||||
if (set.result == vk::Result::eSuccess) {
|
if (set.result == vk::Result::eSuccess) {
|
||||||
auto &layoutSlots{pool->layoutSlots.try_emplace(layout).first->second};
|
auto &layoutSlots{pool->layoutSlots.try_emplace(layout).first->second};
|
||||||
return ActiveDescriptorSet{pool, &layoutSlots.emplace_back(set.value)};
|
auto &slot{layoutSlots.emplace_back(set.value)};
|
||||||
|
slot.active.test_and_set(std::memory_order_relaxed);
|
||||||
|
return ActiveDescriptorSet{pool, &slot};
|
||||||
} else {
|
} else {
|
||||||
lastResult = set.result;
|
lastResult = set.result;
|
||||||
}
|
}
|
||||||
@ -140,6 +142,8 @@ namespace skyline::gpu {
|
|||||||
auto set{AllocateVkDescriptorSet(layout)};
|
auto set{AllocateVkDescriptorSet(layout)};
|
||||||
if (set.result == vk::Result::eSuccess) {
|
if (set.result == vk::Result::eSuccess) {
|
||||||
auto &layoutSlots{pool->layoutSlots.try_emplace(layout).first->second};
|
auto &layoutSlots{pool->layoutSlots.try_emplace(layout).first->second};
|
||||||
|
auto &slot{layoutSlots.emplace_back(set.value)};
|
||||||
|
slot.active.test_and_set(std::memory_order_relaxed);
|
||||||
return ActiveDescriptorSet{pool, &layoutSlots.emplace_back(set.value)};
|
return ActiveDescriptorSet{pool, &layoutSlots.emplace_back(set.value)};
|
||||||
} else {
|
} else {
|
||||||
lastResult = set.result;
|
lastResult = set.result;
|
||||||
|
Loading…
Reference in New Issue
Block a user