forked from OSchip/llvm-project
parent
9f5193cf61
commit
5cae894a13
|
@ -35,9 +35,9 @@ class R600TextureIntrinsicsReplacer :
|
|||
FunctionType *TexSign;
|
||||
FunctionType *TexQSign;
|
||||
|
||||
void getAdjustementFromTextureTarget(unsigned TextureType, bool hasLOD,
|
||||
unsigned SrcSelect[4], unsigned CT[4],
|
||||
bool &useShadowVariant) {
|
||||
void getAdjustmentFromTextureTarget(unsigned TextureType, bool hasLOD,
|
||||
unsigned SrcSelect[4], unsigned CT[4],
|
||||
bool &useShadowVariant) {
|
||||
enum TextureTypes {
|
||||
TEXTURE_1D = 1,
|
||||
TEXTURE_2D,
|
||||
|
@ -174,8 +174,8 @@ class R600TextureIntrinsicsReplacer :
|
|||
};
|
||||
bool useShadowVariant;
|
||||
|
||||
getAdjustementFromTextureTarget(TextureType, hasLOD, SrcSelect, CT,
|
||||
useShadowVariant);
|
||||
getAdjustmentFromTextureTarget(TextureType, hasLOD, SrcSelect, CT,
|
||||
useShadowVariant);
|
||||
|
||||
ReplaceCallInst(I, FT, useShadowVariant?ShadowInt:VanillaInt, SrcSelect,
|
||||
Offset, ResourceId, SamplerId, CT, Coord);
|
||||
|
@ -198,8 +198,8 @@ class R600TextureIntrinsicsReplacer :
|
|||
};
|
||||
bool useShadowVariant;
|
||||
|
||||
getAdjustementFromTextureTarget(TextureType, false, SrcSelect, CT,
|
||||
useShadowVariant);
|
||||
getAdjustmentFromTextureTarget(TextureType, false, SrcSelect, CT,
|
||||
useShadowVariant);
|
||||
|
||||
ReplaceCallInst(I, TexQSign, "llvm.R600.txf", SrcSelect,
|
||||
Offset, ResourceId, SamplerId, CT, Coord);
|
||||
|
|
|
@ -75,8 +75,8 @@ private:
|
|||
DebugLoc DbgLoc;
|
||||
};
|
||||
|
||||
/// A helper class for numbering instructions in multible blocks.
|
||||
/// Numbers starts at zero for each basic block.
|
||||
/// A helper class for numbering instructions in multiple blocks.
|
||||
/// Numbers start at zero for each basic block.
|
||||
struct BlockNumbering {
|
||||
|
||||
BlockNumbering(BasicBlock *Bb) : BB(Bb), Valid(false) {}
|
||||
|
|
Loading…
Reference in New Issue