aco: fix edge check with sub-dword temporaries
[mesa.git] / src / amd / compiler / aco_ir.h
index 3db6b4b6d4385922858ceffc3c9ea1495ef1cbca..a165a1681adf8fd440af7719f9756a81ac23ae45 100644 (file)
@@ -307,7 +307,7 @@ struct PhysReg {
    constexpr bool operator==(PhysReg other) const { return reg_b == other.reg_b; }
    constexpr bool operator!=(PhysReg other) const { return reg_b != other.reg_b; }
    constexpr bool operator <(PhysReg other) const { return reg_b < other.reg_b; }
-   constexpr PhysReg advance(unsigned bytes) const { PhysReg res = *this; res.reg_b += bytes; return res; }
+   constexpr PhysReg advance(int bytes) const { PhysReg res = *this; res.reg_b += bytes; return res; }
 
    uint16_t reg_b = 0;
 };