From 2e9405db4c7c623ef08e638b1d69707c55eabd52 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sat, 26 Aug 2017 20:18:10 +0300 Subject: [PATCH] rsx: Remove index expansion for quad strips --- rpcs3/Emu/RSX/Common/BufferUtils.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/rpcs3/Emu/RSX/Common/BufferUtils.cpp b/rpcs3/Emu/RSX/Common/BufferUtils.cpp index 44a3ab7f62..a653e182a4 100644 --- a/rpcs3/Emu/RSX/Common/BufferUtils.cpp +++ b/rpcs3/Emu/RSX/Common/BufferUtils.cpp @@ -641,8 +641,6 @@ u32 get_index_count(rsx::primitive_type draw_mode, u32 initial_index_count) return (initial_index_count - 2) * 3; case rsx::primitive_type::quads: return (6 * initial_index_count) / 4; - case rsx::primitive_type::quad_strip: - return (6 * (initial_index_count - 2)) / 2; default: return 0; } @@ -691,18 +689,6 @@ void write_index_array_for_non_indexed_non_native_primitive_to_buffer(char* dst, } return; case rsx::primitive_type::quad_strip: - for (unsigned i = 0; i < (count - 2) / 2; i++) - { - // First triangle - typedDst[6 * i] = 2 * i; - typedDst[6 * i + 1] = 2 * i + 1; - typedDst[6 * i + 2] = 2 * i + 2; - // Second triangle - typedDst[6 * i + 3] = 2 * i + 2; - typedDst[6 * i + 4] = 2 * i + 1; - typedDst[6 * i + 5] = 2 * i + 3; - } - return; case rsx::primitive_type::points: case rsx::primitive_type::lines: case rsx::primitive_type::line_strip: