mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-04 01:33:20 +00:00
hot-fix: unexpected pass break on indirect args buffer obtaining
This commit is contained in:
parent
a3df2448ec
commit
09725bd921
1 changed files with 3 additions and 3 deletions
|
@ -100,12 +100,12 @@ void Rasterizer::DrawIndirect(bool is_indexed, VAddr address, u32 offset, u32 si
|
||||||
buffer_cache.BindVertexBuffers(vs_info);
|
buffer_cache.BindVertexBuffers(vs_info);
|
||||||
const u32 num_indices = buffer_cache.BindIndexBuffer(is_indexed, 0);
|
const u32 num_indices = buffer_cache.BindIndexBuffer(is_indexed, 0);
|
||||||
|
|
||||||
BeginRendering(*pipeline);
|
|
||||||
UpdateDynamicState(*pipeline);
|
|
||||||
|
|
||||||
const auto [buffer, base] = buffer_cache.ObtainBuffer(address, size, true);
|
const auto [buffer, base] = buffer_cache.ObtainBuffer(address, size, true);
|
||||||
const auto total_offset = base + offset;
|
const auto total_offset = base + offset;
|
||||||
|
|
||||||
|
BeginRendering(*pipeline);
|
||||||
|
UpdateDynamicState(*pipeline);
|
||||||
|
|
||||||
// We can safely ignore both SGPR UD indices and results of fetch shader parsing, as vertex and
|
// We can safely ignore both SGPR UD indices and results of fetch shader parsing, as vertex and
|
||||||
// instance offsets will be automatically applied by Vulkan from indirect args buffer.
|
// instance offsets will be automatically applied by Vulkan from indirect args buffer.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue