summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_processor.cpp
diff options
context:
space:
mode:
authorJannik Vogel <email@jannikvogel.de>2016-04-10 22:07:06 +0200
committerJannik Vogel <email@jannikvogel.de>2016-04-10 22:07:06 +0200
commitff7c798d8601d59b095e60feea43e98e20054c22 (patch)
tree10bbbe8454dd2516e7d1dcaa9f8ffa05fcf957ea /src/video_core/command_processor.cpp
parentMerge pull request #1653 from mailwl/blx-lr (diff)
downloadyuzu-ff7c798d8601d59b095e60feea43e98e20054c22.tar
yuzu-ff7c798d8601d59b095e60feea43e98e20054c22.tar.gz
yuzu-ff7c798d8601d59b095e60feea43e98e20054c22.tar.bz2
yuzu-ff7c798d8601d59b095e60feea43e98e20054c22.tar.lz
yuzu-ff7c798d8601d59b095e60feea43e98e20054c22.tar.xz
yuzu-ff7c798d8601d59b095e60feea43e98e20054c22.tar.zst
yuzu-ff7c798d8601d59b095e60feea43e98e20054c22.zip
Diffstat (limited to 'src/video_core/command_processor.cpp')
-rw-r--r--src/video_core/command_processor.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp
index 028b59348..08ec2907a 100644
--- a/src/video_core/command_processor.cpp
+++ b/src/video_core/command_processor.cpp
@@ -249,10 +249,6 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) {
const u16* index_address_16 = reinterpret_cast<const u16*>(index_address_8);
bool index_u16 = index_info.format != 0;
-#if PICA_DUMP_GEOMETRY
- DebugUtils::GeometryDumper geometry_dumper;
- PrimitiveAssembler<DebugUtils::GeometryDumper::Vertex> dumping_primitive_assembler(regs.triangle_topology.Value());
-#endif
PrimitiveAssembler<Shader::OutputVertex>& primitive_assembler = g_state.primitive_assembler;
if (g_debug_context) {
@@ -388,17 +384,6 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) {
if (g_debug_context)
g_debug_context->OnEvent(DebugContext::Event::VertexLoaded, (void*)&input);
-#if PICA_DUMP_GEOMETRY
- // NOTE: When dumping geometry, we simply assume that the first input attribute
- // corresponds to the position for now.
- DebugUtils::GeometryDumper::Vertex dumped_vertex = {
- input.attr[0][0].ToFloat32(), input.attr[0][1].ToFloat32(), input.attr[0][2].ToFloat32()
- };
- using namespace std::placeholders;
- dumping_primitive_assembler.SubmitVertex(dumped_vertex,
- std::bind(&DebugUtils::GeometryDumper::AddTriangle,
- &geometry_dumper, _1, _2, _3));
-#endif
// Send to vertex shader
output = Shader::Run(shader_unit, input, attribute_config.GetNumTotalAttributes());
@@ -424,10 +409,6 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) {
range.second, range.first);
}
-#if PICA_DUMP_GEOMETRY
- geometry_dumper.Dump();
-#endif
-
break;
}