From bc3065939f8e7d3093be35ed14df1546ca0adf74 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Sun, 3 Jan 2016 02:12:41 +0100 Subject: [PATCH] rsx-debug: dump anti aliasing control --- rpcs3/Emu/RSX/GCM.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/rpcs3/Emu/RSX/GCM.cpp b/rpcs3/Emu/RSX/GCM.cpp index 2fb3d3db05..21fc8fadc2 100644 --- a/rpcs3/Emu/RSX/GCM.cpp +++ b/rpcs3/Emu/RSX/GCM.cpp @@ -1206,6 +1206,27 @@ namespace ((arg & CELL_GCM_SHADER_CONTROL_32_BITS_EXPORTS) ? " 32b_exports " : ""); } + std::string anti_aliasing_control(u32 arg) + { + std::string result = "Anti_aliasing: "; + if (arg & 0x1) + result += "enabled"; + else + result += "disabled"; + result += " alpha_to_coverage = "; + if ((arg >> 4) & 0x1) + result += "enabled"; + else + result += "disabled"; + result += " alpha_to_one = "; + if ((arg >> 8) & 0x1) + result += "enabled"; + else + result += "disabled"; + result += " sample_mask = " + ptr_to_string(arg >> 16); + return result; + } + #define OPCODE_RANGE_1(opcode, increment, index, printing_function) \ { (opcode) + (index) * (increment), [](u32 arg) -> std::string { return (printing_function)((index), arg); } }, @@ -1303,6 +1324,7 @@ namespace { NV4097_SET_VERTEX_ATTRIB_INPUT_MASK, vertex_input_mask}, { NV4097_SET_VERTEX_ATTRIB_OUTPUT_MASK, vertex_output_mask }, { NV4097_SET_SHADER_CONTROL, shader_control }, + { NV4097_SET_ANTI_ALIASING_CONTROL, anti_aliasing_control }, { NV4097_SET_VERTEX_DATA_ARRAY_FORMAT, [](u32 arg) -> std::string { return "Vertex array 0: " + unpack_vertex_format(arg); } }, { NV4097_SET_VERTEX_DATA_ARRAY_FORMAT + 1, [](u32 arg) -> std::string { return "Vertex array 1: " + unpack_vertex_format(arg); } }, { NV4097_SET_VERTEX_DATA_ARRAY_FORMAT + 2, [](u32 arg) -> std::string { return "Vertex array 2: " + unpack_vertex_format(arg); } },