radeonsi: Fix sampler views for depth textures.
[mesa.git] / src / gallium / drivers / radeon / AMDGPU.h
1 //===-- AMDGPU.h - MachineFunction passes hw codegen --------------*- C++ -*-=//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef AMDGPU_H
11 #define AMDGPU_H
12
13 #include "AMDGPUTargetMachine.h"
14 #include "llvm/Support/TargetRegistry.h"
15 #include "llvm/Target/TargetMachine.h"
16
17 namespace llvm {
18
19 class FunctionPass;
20 class AMDGPUTargetMachine;
21
22 // R600 Passes
23 FunctionPass* createR600KernelParametersPass(const TargetData* TD);
24 FunctionPass *createR600ExpandSpecialInstrsPass(TargetMachine &tm);
25
26 // SI Passes
27 FunctionPass *createSIAssignInterpRegsPass(TargetMachine &tm);
28 FunctionPass *createSILowerFlowControlPass(TargetMachine &tm);
29 FunctionPass *createSICodeEmitterPass(formatted_raw_ostream &OS);
30 FunctionPass *createSILowerLiteralConstantsPass(TargetMachine &tm);
31
32 // Passes common to R600 and SI
33 FunctionPass *createAMDGPUConvertToISAPass(TargetMachine &tm);
34
35 } // End namespace llvm
36
37 namespace ShaderType {
38 enum Type {
39 PIXEL = 0,
40 VERTEX = 1,
41 GEOMETRY = 2,
42 COMPUTE = 3
43 };
44 }
45
46 #endif // AMDGPU_H