mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-14 01:20:40 +00:00
R600: Coding style
llvm-svn: 190110
This commit is contained in:
parent
4554c8ed29
commit
0aa46c444e
@ -94,9 +94,8 @@ class R600TextureIntrinsicsReplacer :
|
||||
}
|
||||
|
||||
if (TextureType == TEXTURE_CUBE_ARRAY ||
|
||||
TextureType == TEXTURE_SHADOWCUBE_ARRAY) {
|
||||
TextureType == TEXTURE_SHADOWCUBE_ARRAY)
|
||||
CT[2] = 0;
|
||||
}
|
||||
|
||||
if (TextureType == TEXTURE_1D_ARRAY ||
|
||||
TextureType == TEXTURE_SHADOW1D_ARRAY) {
|
||||
@ -115,9 +114,8 @@ class R600TextureIntrinsicsReplacer :
|
||||
TextureType == TEXTURE_SHADOW2D ||
|
||||
TextureType == TEXTURE_SHADOWRECT ||
|
||||
TextureType == TEXTURE_SHADOW1D_ARRAY) &&
|
||||
!(hasLOD && useShadowVariant)) {
|
||||
!(hasLOD && useShadowVariant))
|
||||
SrcSelect[3] = 2;
|
||||
}
|
||||
}
|
||||
|
||||
void ReplaceCallInst(CallInst &I, FunctionType *FT, const char *Name,
|
||||
@ -260,9 +258,9 @@ public:
|
||||
}
|
||||
|
||||
void visitCallInst(CallInst &I) {
|
||||
if (!I.getCalledFunction()) {
|
||||
if (!I.getCalledFunction())
|
||||
return;
|
||||
}
|
||||
|
||||
StringRef Name = I.getCalledFunction()->getName();
|
||||
if (Name == "llvm.AMDGPU.tex") {
|
||||
ReplaceTexIntrinsic(I, false, TexSign, "llvm.R600.tex", "llvm.R600.texc");
|
||||
|
Loading…
x
Reference in New Issue
Block a user