Skip to content

Commit f922845

Browse files
weiyu-chengfxbot
authored andcommitted
Make sure we use the cached sampler header when spliting a SIMD16 sample instruction
Change-Id: I4d63deed418be85db1fc226c58c86884534d3075
1 parent c6efd3c commit f922845

File tree

2 files changed

+104
-86
lines changed

2 files changed

+104
-86
lines changed

visa/BuildIR.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2578,6 +2578,23 @@ class IR_Builder {
25782578

25792579
G4_Declare* getImmDcl(G4_Imm* val, int numElt);
25802580

2581+
int splitSampleInst(VISASampler3DSubOpCode actualop,
2582+
bool pixelNullMask,
2583+
bool cpsEnable,
2584+
G4_Predicate* pred,
2585+
ChannelMask srcChannel,
2586+
int numChannels,
2587+
G4_Operand *aoffimmi,
2588+
G4_Operand *sampler,
2589+
G4_Operand *surface,
2590+
G4_DstRegRegion* dst,
2591+
Common_VISA_EMask_Ctrl emask,
2592+
bool useHeader,
2593+
unsigned numRows, // msg length for each simd8
2594+
unsigned int numParms,
2595+
G4_SrcRegRegion ** params,
2596+
bool uniformSampler = true);
2597+
25812598
};
25822599
}
25832600

0 commit comments

Comments
 (0)