Bläddra i källkod

Fixed the parameter for QuadReadLaneAt incorrectly being const (#3421)

Adam Yang 4 år sedan
förälder
incheckning
01135442bb
2 ändrade filer med 1 tillägg och 3 borttagningar
  1. 0 2
      include/dxc/DXIL/DxilInstructions.h
  2. 1 1
      utils/hct/hctdb.py

+ 0 - 2
include/dxc/DXIL/DxilInstructions.h

@@ -4318,8 +4318,6 @@ struct DxilInst_QuadReadLaneAt {
   void set_value(llvm::Value *val) { Instr->setOperand(1, val); }
   llvm::Value *get_quadLane() const { return Instr->getOperand(2); }
   void set_quadLane(llvm::Value *val) { Instr->setOperand(2, val); }
-  uint32_t get_quadLane_val() const { return (uint32_t)(llvm::dyn_cast<llvm::ConstantInt>(Instr->getOperand(2))->getZExtValue()); }
-  void set_quadLane_val(uint32_t val) { Instr->setOperand(2, llvm::Constant::getIntegerValue(llvm::IntegerType::get(Instr->getContext(), 32), llvm::APInt(32, (uint64_t)val))); }
 };
 
 /// This instruction returns the result of a quad-level operation

+ 1 - 1
utils/hct/hctdb.py

@@ -1201,7 +1201,7 @@ class db_dxil(object):
         self.add_dxil_op("QuadReadLaneAt", next_op_idx, "QuadReadLaneAt", "reads from a lane in the quad", "hfd18wil", "", [
             db_dxil_param(0, "$o", "", "operation result"),
             db_dxil_param(2, "$o", "value", "value to read"),
-            db_dxil_param(3, "u32", "quadLane", "lane to read from (0-4)", max_value = 3, is_const=True)])
+            db_dxil_param(3, "u32", "quadLane", "lane to read from (0-4)", max_value = 3)])
         next_op_idx += 1
         self.add_enum_type("QuadOpKind", "Kind of quad-level operation", [
             (0, "ReadAcrossX", "returns the value from the other lane in the quad in the horizontal direction"),