fix pipeline_common

This commit is contained in:
Frodo Baggins 2024-10-19 14:38:28 -07:00
parent 57df6f189f
commit 2d54441ce4

View File

@ -59,10 +59,9 @@ void Pipeline::BindBuffers(VideoCore::BufferCache& buffer_cache,
// Bind the flattened user data buffer as a UBO so it's accessible to the shader
if (stage.has_readconst) {
const auto [vk_buffer, offset] =
buffer_cache.ObtainHostUBO(reinterpret_cast<VAddr>(stage.flattened_ud_buf.data()),
stage.flattened_ud_buf.size_bytes());
buffer_infos.emplace_back(vk_buffer->Handle(), offset, stage.flattened_ud_buf.size_bytes());
const auto [vk_buffer, offset] = buffer_cache.ObtainHostUBO(stage.flattened_ud_buf);
buffer_infos.emplace_back(vk_buffer->Handle(), offset,
stage.flattened_ud_buf.size() * sizeof(u32));
set_writes.push_back({
.dstSet = VK_NULL_HANDLE,
.dstBinding = binding.unified++,