rsx: Fix shader interpreter

This commit is contained in:
kd-11
2025-11-09 16:55:56 +03:00
committed by kd-11
parent d87f055bb2
commit 265d6643e5
2 changed files with 7 additions and 3 deletions
@@ -529,7 +529,7 @@ void initialize()
// WPOS
vr0 = vec4(abs(wpos_scale), wpos_scale, 1., 1.);
vr1 = vec4(0., wpos_bias, 0., 0.);
vr1 = vec4(wpos_bias, 0., 0.);
wpos = gl_FragCoord * vr0 + vr1;
// Other
+6 -2
View File
@@ -501,8 +501,11 @@ namespace vk
if (auto ptr = std::get_if<descriptor_image_array_t>(&slot))
{
// We need to convert the VkDescriptorImageInfoEx entries back to the native vulkan variants since we're going to be flushing an array with no stride check
auto vk_data = ptr->map(FN(static_cast<VkDescriptorImageInfo>(x)));
writer.descriptorCount = ptr->size();
m_descriptor_set.push(ptr->data(), ptr->size(), type, idx);
m_descriptor_set.push(vk_data.data(), vk_data.size(), type, idx);
return;
}
@@ -552,8 +555,9 @@ namespace vk
if (auto ptr = std::get_if<descriptor_image_array_t>(&slot))
{
auto vk_data = ptr->map(FN(static_cast<VkDescriptorImageInfo>(x))); // This can be optimized to update only changed ids but this is an interpreter-only feature for now
ensure(m_descriptor_template[idx].descriptorCount == ptr->size());
m_descriptor_template[idx].pImageInfo = m_descriptor_set.store(*ptr);
m_descriptor_template[idx].pImageInfo = m_descriptor_set.store(vk_data);
return;
}