shader_ir: Unify blocks in decompiled shaders.

This commit is contained in:
Fernando Sahmkow
2019-06-25 13:03:51 -04:00
committed by FernandoS27
parent 926b80102f
commit d5533b440c
7 changed files with 90 additions and 63 deletions

View File

@ -3,7 +3,7 @@
#include <cstring>
#include <list>
#include <optional>
#include <vector>
#include <unordered_set>
#include "video_core/engines/shader_bytecode.h"
#include "video_core/shader/shader_ir.h"
@ -48,6 +48,7 @@ struct ShaderCharacteristics {
bool decompilable{};
u32 start;
u32 end;
std::unordered_set<u32> labels{};
};
bool ScanFlow(const ProgramCode& program_code, u32 program_size, u32 start_address,