mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-02 04:51:26 +12:00
vk: Correctly initialize descriptor copy data
This commit is contained in:
parent
aac4fbe941
commit
20b54f3086
1 changed files with 5 additions and 1 deletions
|
@ -496,6 +496,8 @@ namespace vk
|
|||
};
|
||||
|
||||
m_copy_cmds.clear();
|
||||
rsx::flags32_t type_mask = 0u;
|
||||
|
||||
for (unsigned i = 0; i < m_descriptor_slots.size(); ++i)
|
||||
{
|
||||
if (m_descriptors_dirty[i])
|
||||
|
@ -514,9 +516,11 @@ namespace vk
|
|||
.dstBinding = i,
|
||||
.descriptorCount = 1
|
||||
});
|
||||
|
||||
type_mask |= (1u << m_descriptor_types[i]);
|
||||
}
|
||||
|
||||
m_descriptor_set.push(m_copy_cmds); // Write previous state
|
||||
m_descriptor_set.push(m_copy_cmds, type_mask); // Write previous state
|
||||
|
||||
m_previous_set = m_descriptor_set.value();
|
||||
m_descriptor_set = allocate_descriptor_set();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue