From 2403e86cbb5c49afeceb98f7c6e843da78dff415 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Thu, 28 Apr 2016 20:17:35 +0200 Subject: Don't keep base_address in the loader, it doesn't belong there (with it, the loader can't be cached). --- src/video_core/vertex_loader.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/video_core/vertex_loader.h') diff --git a/src/video_core/vertex_loader.h b/src/video_core/vertex_loader.h index 560d36edc..40c5e83c9 100644 --- a/src/video_core/vertex_loader.h +++ b/src/video_core/vertex_loader.h @@ -38,10 +38,10 @@ public: class VertexLoader { public: void Setup(const Pica::Regs& regs); - void LoadVertex(int index, int vertex, Shader::InputVertex& input, MemoryAccesses& memory_accesses); + void LoadVertex(u32 base_address, int index, int vertex, Shader::InputVertex& input, MemoryAccesses& memory_accesses); - u32 GetPhysicalBaseAddress() const { return base_address; } int GetNumTotalAttributes() const { return num_total_attributes; } + private: u32 vertex_attribute_sources[16]; u32 vertex_attribute_strides[16] = {}; @@ -49,7 +49,6 @@ private: u32 vertex_attribute_elements[16] = {}; u32 vertex_attribute_element_size[16] = {}; bool vertex_attribute_is_default[16]; - u32 base_address; int num_total_attributes; }; -- cgit v1.2.3