Skip to content

Commit 4b4b52a

Browse files
Fix TextureGatherCmp operand typo (#4075)
1 parent 88c1779 commit 4b4b52a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

include/dxc/DXIL/DxilInstructions.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3042,7 +3042,7 @@ struct DxilInst_TextureGatherCmp {
30423042
arg_offset0 = 7,
30433043
arg_offset1 = 8,
30443044
arg_channel = 9,
3045-
arg_compareVale = 10,
3045+
arg_compareValue = 10,
30463046
};
30473047
// Accessors
30483048
llvm::Value *get_srv() const { return Instr->getOperand(1); }
@@ -3063,8 +3063,8 @@ struct DxilInst_TextureGatherCmp {
30633063
void set_offset1(llvm::Value *val) { Instr->setOperand(8, val); }
30643064
llvm::Value *get_channel() const { return Instr->getOperand(9); }
30653065
void set_channel(llvm::Value *val) { Instr->setOperand(9, val); }
3066-
llvm::Value *get_compareVale() const { return Instr->getOperand(10); }
3067-
void set_compareVale(llvm::Value *val) { Instr->setOperand(10, val); }
3066+
llvm::Value *get_compareValue() const { return Instr->getOperand(10); }
3067+
void set_compareValue(llvm::Value *val) { Instr->setOperand(10, val); }
30683068
};
30693069

30703070
/// This instruction gets the position of the specified sample

utils/hct/hctdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ def UFI(name, **mappings):
936936
db_dxil_param(8, "i32", "offset0", "optional offset, applicable to Texture1D, Texture1DArray, and as part of offset1"),
937937
db_dxil_param(9, "i32", "offset1", "optional offset, applicable to Texture2D, Texture2DArray, and as part of offset2"),
938938
db_dxil_param(10, "i32", "channel", "channel to sample"),
939-
db_dxil_param(11, "f", "compareVale", "value to compare with")],
939+
db_dxil_param(11, "f", "compareValue", "value to compare with")],
940940
counters=('tex_cmp',))
941941
next_op_idx += 1
942942

0 commit comments

Comments
 (0)