rsx: Fix vertex arrays fetch with inlined draws

This commit is contained in:
eladash 2018-09-24 10:07:46 +03:00 committed by kd-11
parent e8474145a5
commit e0a676a3fe

View File

@ -1784,7 +1784,10 @@ namespace rsx
for (u8 index = 0; index < rsx::limits::vertex_count; ++index) for (u8 index = 0; index < rsx::limits::vertex_count; ++index)
{ {
const u32 mask = (1u << index); // Check if vertex stream is enabled
if (!(input_mask & (1 << index)))
continue;
auto &vinfo = state.vertex_arrays_info[index]; auto &vinfo = state.vertex_arrays_info[index];
if (vinfo.size() > 0) if (vinfo.size() > 0)
@ -1806,8 +1809,8 @@ namespace rsx
for (u8 index = 0; index < rsx::limits::vertex_count; ++index) for (u8 index = 0; index < rsx::limits::vertex_count; ++index)
{ {
const bool enabled = !!(input_mask & (1 << index)); // Check if vertex stream is enabled
if (!enabled) if (!(input_mask & (1 << index)))
continue; continue;
//Check for interleaving //Check for interleaving