Skip to content

Commit 4ce225f

Browse files
authored
Merge main to staging-sm6.9 (#7330)
Merge latest main into staging-sm6.9.
2 parents d478b86 + 3e18075 commit 4ce225f

16 files changed

Lines changed: 1959 additions & 256 deletions

include/dxc/DXIL/DxilInstructions.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5079,15 +5079,15 @@ struct DxilInst_RawBufferLoad {
50795079
bool requiresUniformInputs() const { return false; }
50805080
// Operand indexes
50815081
enum OperandIdx {
5082-
arg_buf = 1,
5082+
arg_srv = 1,
50835083
arg_index = 2,
50845084
arg_elementOffset = 3,
50855085
arg_mask = 4,
50865086
arg_alignment = 5,
50875087
};
50885088
// Accessors
5089-
llvm::Value *get_buf() const { return Instr->getOperand(1); }
5090-
void set_buf(llvm::Value *val) { Instr->setOperand(1, val); }
5089+
llvm::Value *get_srv() const { return Instr->getOperand(1); }
5090+
void set_srv(llvm::Value *val) { Instr->setOperand(1, val); }
50915091
llvm::Value *get_index() const { return Instr->getOperand(2); }
50925092
void set_index(llvm::Value *val) { Instr->setOperand(2, val); }
50935093
llvm::Value *get_elementOffset() const { return Instr->getOperand(3); }

lib/DXIL/DxilOperations.cpp

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,16 @@ const OP::OpCodeProperty OP::m_OpCodeProps[(unsigned)OP::OpCode::NumOpCodes] = {
9696
"unary",
9797
Attribute::ReadNone,
9898
1,
99-
{{0x7}},
100-
{{0x0}}}, // Overloads: hfd
99+
{{0x407}},
100+
{{0x7}}}, // Overloads: hfd<hfd
101101
{OC::Saturate,
102102
"Saturate",
103103
OCC::Unary,
104104
"unary",
105105
Attribute::ReadNone,
106106
1,
107-
{{0x7}},
108-
{{0x0}}}, // Overloads: hfd
107+
{{0x407}},
108+
{{0x7}}}, // Overloads: hfd<hfd
109109
{OC::IsNaN,
110110
"IsNaN",
111111
OCC::IsSpecialFloat,
@@ -292,8 +292,8 @@ const OP::OpCodeProperty OP::m_OpCodeProps[(unsigned)OP::OpCode::NumOpCodes] = {
292292
"unary",
293293
Attribute::ReadNone,
294294
1,
295-
{{0xe0}},
296-
{{0x0}}}, // Overloads: wil
295+
{{0x4e0}},
296+
{{0xe0}}}, // Overloads: wil<wil
297297
{OC::Countbits,
298298
"Countbits",
299299
OCC::UnaryBits,
@@ -438,8 +438,8 @@ const OP::OpCodeProperty OP::m_OpCodeProps[(unsigned)OP::OpCode::NumOpCodes] = {
438438
"tertiary",
439439
Attribute::ReadNone,
440440
1,
441-
{{0x7}},
442-
{{0x0}}}, // Overloads: hfd
441+
{{0x407}},
442+
{{0x7}}}, // Overloads: hfd<hfd
443443
{OC::Fma,
444444
"Fma",
445445
OCC::Tertiary,
@@ -456,8 +456,8 @@ const OP::OpCodeProperty OP::m_OpCodeProps[(unsigned)OP::OpCode::NumOpCodes] = {
456456
"tertiary",
457457
Attribute::ReadNone,
458458
1,
459-
{{0xe0}},
460-
{{0x0}}}, // Overloads: wil
459+
{{0x4e0}},
460+
{{0xe0}}}, // Overloads: wil<wil
461461

462462
// Tertiary uint
463463
{OC::UMad,
@@ -466,8 +466,8 @@ const OP::OpCodeProperty OP::m_OpCodeProps[(unsigned)OP::OpCode::NumOpCodes] = {
466466
"tertiary",
467467
Attribute::ReadNone,
468468
1,
469-
{{0xe0}},
470-
{{0x0}}}, // Overloads: wil
469+
{{0x4e0}},
470+
{{0xe0}}}, // Overloads: wil<wil
471471

472472
// Tertiary int
473473
{OC::Msad,
@@ -764,32 +764,32 @@ const OP::OpCodeProperty OP::m_OpCodeProps[(unsigned)OP::OpCode::NumOpCodes] = {
764764
"unary",
765765
Attribute::ReadNone,
766766
1,
767-
{{0x3}},
768-
{{0x0}}}, // Overloads: hf
767+
{{0x403}},
768+
{{0x3}}}, // Overloads: hf<hf
769769
{OC::DerivCoarseY,
770770
"DerivCoarseY",
771771
OCC::Unary,
772772
"unary",
773773
Attribute::ReadNone,
774774
1,
775-
{{0x3}},
776-
{{0x0}}}, // Overloads: hf
775+
{{0x403}},
776+
{{0x3}}}, // Overloads: hf<hf
777777
{OC::DerivFineX,
778778
"DerivFineX",
779779
OCC::Unary,
780780
"unary",
781781
Attribute::ReadNone,
782782
1,
783-
{{0x3}},
784-
{{0x0}}}, // Overloads: hf
783+
{{0x403}},
784+
{{0x3}}}, // Overloads: hf<hf
785785
{OC::DerivFineY,
786786
"DerivFineY",
787787
OCC::Unary,
788788
"unary",
789789
Attribute::ReadNone,
790790
1,
791-
{{0x3}},
792-
{{0x0}}}, // Overloads: hf
791+
{{0x403}},
792+
{{0x3}}}, // Overloads: hf<hf
793793

794794
// Pixel shader
795795
{OC::EvalSnapped,

0 commit comments

Comments
 (0)