mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-24 13:41:05 +00:00
fixup! vertex_shader: Optimized SIMD-based vertex shader interpreter for x86 systems.
This commit is contained in:
parent
a7e175be03
commit
6b98489dfb
@ -2,6 +2,7 @@
|
|||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <nihstro/shader_bytecode.h>
|
#include <nihstro/shader_bytecode.h>
|
||||||
@ -221,7 +222,7 @@ VertexShader::OutputVertex RunShader(CoreState& state, const VertexShader::Input
|
|||||||
while (true) {
|
while (true) {
|
||||||
if (!state.call_stack.empty()) {
|
if (!state.call_stack.empty()) {
|
||||||
auto& top = state.call_stack.back();
|
auto& top = state.call_stack.back();
|
||||||
if (&program_code[state.pc] - program_code.data() == top.final_address) {
|
if (state.pc == top.final_address) {
|
||||||
state.address_offset.raw_i.m128i_i32[3] += top.loop_increment;
|
state.address_offset.raw_i.m128i_i32[3] += top.loop_increment;
|
||||||
|
|
||||||
if (top.repeat_counter-- == 0) {
|
if (top.repeat_counter-- == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user