diff --git a/rpcs3/Emu/RSX/D3D12/D3D12Buffer.cpp b/rpcs3/Emu/RSX/D3D12/D3D12Buffer.cpp index 62ae24f1e9..ebda80f0ff 100644 --- a/rpcs3/Emu/RSX/D3D12/D3D12Buffer.cpp +++ b/rpcs3/Emu/RSX/D3D12/D3D12Buffer.cpp @@ -143,6 +143,7 @@ D3D12_GPU_VIRTUAL_ADDRESS createVertexBuffer(const VertexBufferFormat &vbf, cons std::vector D3D12GSRender::UploadVertexBuffers(bool indexed_draw) { + u32 m_vertex_data_base_offset = rsx::method_registers[NV4097_SET_VERTEX_DATA_BASE_OFFSET]; std::vector result; const std::vector &vertexBufferFormat = FormatVertexData(vertex_arrays_info, vertex_arrays, m_vertexBufferSize, m_vertex_data_base_offset); m_IASet = getIALayout(m_device.Get(), vertexBufferFormat, vertex_arrays_info, m_vertex_data_base_offset); diff --git a/rpcs3/Emu/RSX/RSXThread.cpp b/rpcs3/Emu/RSX/RSXThread.cpp index b6a7a95388..f85f2d0e77 100644 --- a/rpcs3/Emu/RSX/RSXThread.cpp +++ b/rpcs3/Emu/RSX/RSXThread.cpp @@ -880,17 +880,7 @@ void RSXThread::DoCmd(const u32 fcmd, const u32 cmd, const u32 args_addr, const } case NV4097_SET_VERTEX_DATA_BASE_OFFSET: - { - m_vertex_data_base_offset = ARGS(0); - - if (count >= 2) - { - m_vertex_data_base_index = ARGS(1); - } - - //LOG_WARNING(RSX, "NV4097_SET_VERTEX_DATA_BASE_OFFSET: 0x%x", m_vertex_data_base_offset); break; - } case NV4097_SET_VERTEX_DATA_BASE_INDEX: { diff --git a/rpcs3/Emu/RSX/RSXThread.h b/rpcs3/Emu/RSX/RSXThread.h index 51017a1b30..7a8d50270f 100644 --- a/rpcs3/Emu/RSX/RSXThread.h +++ b/rpcs3/Emu/RSX/RSXThread.h @@ -330,7 +330,6 @@ public: u16 m_shader_window_pixel_centers; // Vertex Data - u32 m_vertex_data_base_offset; u32 m_vertex_data_base_index; // Frequency divider @@ -410,7 +409,7 @@ protected: m_line_width = 1.0; m_line_stipple_pattern = 0xffff; m_line_stipple_factor = 1; - m_vertex_data_base_offset = 0; + rsx::method_registers[NV4097_SET_VERTEX_DATA_BASE_OFFSET] = 0; m_vertex_data_base_index = 0; // Construct Stipple Pattern