rsx: Move inline array to draw_clause structure.

This commit is contained in:
vlj 2016-08-27 19:22:12 +02:00
parent ce21db2ce3
commit 03c86ae43b
7 changed files with 26 additions and 15 deletions

View file

@ -327,7 +327,7 @@ namespace rsx
void thread::begin()
{
inline_vertex_array.clear();
rsx::method_registers.current_draw_clause.inline_vertex_array.clear();
}
void thread::end()
@ -521,11 +521,13 @@ namespace rsx
void thread::write_inline_array_to_buffer(void *dst_buffer)
{
u8* src = reinterpret_cast<u8*>(inline_vertex_array.data());
u8* src =
reinterpret_cast<u8*>(rsx::method_registers.current_draw_clause.inline_vertex_array.data());
u8* dst = (u8*)dst_buffer;
size_t bytes_written = 0;
while (bytes_written < inline_vertex_array.size() * sizeof(u32))
while (bytes_written <
rsx::method_registers.current_draw_clause.inline_vertex_array.size() * sizeof(u32))
{
for (int index = 0; index < rsx::limits::vertex_count; ++index)
{