shader_ir: propagate shader size to the IR

This commit is contained in:
Fernando Sahmkow
2019-06-25 07:57:32 -04:00
committed by FernandoS27
parent 8a6fc529a9
commit 459fce3a8f
6 changed files with 28 additions and 17 deletions

View File

@ -65,7 +65,7 @@ struct GlobalMemoryUsage {
class ShaderIR final {
public:
explicit ShaderIR(const ProgramCode& program_code, u32 main_offset);
explicit ShaderIR(const ProgramCode& program_code, u32 main_offset, std::size_t size);
~ShaderIR();
const std::map<u32, NodeBlock>& GetBasicBlocks() const {
@ -316,6 +316,7 @@ private:
const ProgramCode& program_code;
const u32 main_offset;
const std::size_t program_size;
u32 coverage_begin{};
u32 coverage_end{};