aco: do not set valid_mask for POS0 exports on GFX 10.3
[mesa.git] / src / amd / compiler / aco_builder_h.py
index b3adb14dc8e15068272fafc01fd1b52694bfc2fc..fb28181a9b47e19828bf8103cf7654d4b8c7a34c 100644 (file)
@@ -178,7 +178,7 @@ public:
    bool is_precise = false;
    bool is_nuw = false;
 
-   Builder(Program *pgm) : program(pgm), use_iterator(false), start(false), lm(pgm->lane_mask), instructions(NULL) {}
+   Builder(Program *pgm) : program(pgm), use_iterator(false), start(false), lm(pgm ? pgm->lane_mask : s2), instructions(NULL) {}
    Builder(Program *pgm, Block *block) : program(pgm), use_iterator(false), start(false), lm(pgm ? pgm->lane_mask : s2), instructions(&block->instructions) {}
    Builder(Program *pgm, std::vector<aco_ptr<Instruction>> *instrs) : program(pgm), use_iterator(false), start(false), lm(pgm ? pgm->lane_mask : s2), instructions(instrs) {}