rsx: inlined array stride fix

This commit is contained in:
eladash 2018-11-11 20:56:25 +02:00 committed by kd-11
parent 986bb24326
commit 37b6afaf2c

View file

@ -1791,13 +1791,13 @@ namespace rsx
if (vinfo.size() > 0) if (vinfo.size() > 0)
{ {
// Attribute stride must be updated even if the stream is disabled // Stride must be updated even if the stream is disabled
info.attribute_stride += rsx::get_vertex_type_size_on_host(vinfo.type(), vinfo.size()); info.attribute_stride += rsx::get_vertex_type_size_on_host(vinfo.type(), vinfo.size());
info.locations.push_back(index);
if (input_mask & (1u << index)) if (input_mask & (1u << index))
{ {
result.attribute_placement[index] = attribute_buffer_placement::transient; result.attribute_placement[index] = attribute_buffer_placement::transient;
info.locations.push_back(index);
} }
} }
else if (state.register_vertex_info[index].size > 0 && input_mask & (1u << index)) else if (state.register_vertex_info[index].size > 0 && input_mask & (1u << index))