summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Subv2015-05-17 14:13:11 -0500
committerGravatar Subv2015-05-17 14:13:11 -0500
commit24d9416930ae39533b773a0b7a35dc2d87d1cc7b (patch)
treea16ab79b8974dd07f1d1d382f0878e382e76f74a /src
parentGPU/DefaultAttributes: Let the attribute data from the loaders overwrite the ... (diff)
downloadyuzu-24d9416930ae39533b773a0b7a35dc2d87d1cc7b.tar.gz
yuzu-24d9416930ae39533b773a0b7a35dc2d87d1cc7b.tar.xz
yuzu-24d9416930ae39533b773a0b7a35dc2d87d1cc7b.zip
GPU/DefaultAttributes: Clear up a comment in command_processor
Diffstat (limited to 'src')
-rw-r--r--src/video_core/command_processor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp
index f24c09733..6121df8e3 100644
--- a/src/video_core/command_processor.cpp
+++ b/src/video_core/command_processor.cpp
@@ -127,7 +127,7 @@ static inline void WritePicaReg(u32 id, u32 value, u32 mask) {
127 input.attr[0].w = debug_token; 127 input.attr[0].w = debug_token;
128 128
129 for (int i = 0; i < attribute_config.GetNumTotalAttributes(); ++i) { 129 for (int i = 0; i < attribute_config.GetNumTotalAttributes(); ++i) {
130 // Load the default attribute if we're configured to do so 130 // Load the default attribute if we're configured to do so, this data will be overwritten by the loader data if it's set
131 if (attribute_config.IsDefaultAttribute(i)) { 131 if (attribute_config.IsDefaultAttribute(i)) {
132 input.attr[i] = VertexShader::GetDefaultAttribute(i); 132 input.attr[i] = VertexShader::GetDefaultAttribute(i);
133 LOG_TRACE(HW_GPU, "Loaded default attribute %x for vertex %x (index %x): (%f, %f, %f, %f)", 133 LOG_TRACE(HW_GPU, "Loaded default attribute %x for vertex %x (index %x): (%f, %f, %f, %f)",
@@ -136,7 +136,7 @@ static inline void WritePicaReg(u32 id, u32 value, u32 mask) {
136 input.attr[i][2].ToFloat32(), input.attr[i][3].ToFloat32()); 136 input.attr[i][2].ToFloat32(), input.attr[i][3].ToFloat32());
137 } 137 }
138 138
139 // Overwrite the default data with the loader data if there's any 139 // Load per-vertex data from the loader arrays
140 for (unsigned int comp = 0; comp < vertex_attribute_elements[i]; ++comp) { 140 for (unsigned int comp = 0; comp < vertex_attribute_elements[i]; ++comp) {
141 const u8* srcdata = Memory::GetPhysicalPointer(vertex_attribute_sources[i] + vertex_attribute_strides[i] * vertex + comp * vertex_attribute_element_size[i]); 141 const u8* srcdata = Memory::GetPhysicalPointer(vertex_attribute_sources[i] + vertex_attribute_strides[i] * vertex + comp * vertex_attribute_element_size[i]);
142 142