glsl: Fix "reg" allocing

based on glasm with some tweaks
This commit is contained in:
ameerj
2021-05-20 23:38:38 -04:00
parent eaff1030de
commit 64337f004d
10 changed files with 938 additions and 898 deletions

View File

@ -29,6 +29,12 @@ public:
std::string Consume(const IR::Value& value);
/// Returns true if the instruction is expected to be aliased to another
static bool IsAliased(const IR::Inst& inst);
/// Returns the underlying value out of an alias sequence
static IR::Inst& AliasInst(IR::Inst& inst);
private:
static constexpr size_t NUM_REGS = 4096;
static constexpr size_t NUM_ELEMENTS = 4;