summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/R600MachineFunctionInfo.cpp
diff options
context:
space:
mode:
authorVincent Lejeune <[email protected]>2012-09-06 22:45:38 +0200
committerVincent Lejeune <[email protected]>2012-09-22 18:12:11 +0200
commitfb40f88338b6af23faae03ced5906add8507db26 (patch)
tree66ea066cc61a464be7bfaf835afed48f4cdb80f8 /src/gallium/drivers/radeon/R600MachineFunctionInfo.cpp
parent2988fa940e1d8a4531fddff4d554eec1e6e04474 (diff)
radeon/llvm: support for interpolation intrinsics
Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/R600MachineFunctionInfo.cpp')
-rw-r--r--src/gallium/drivers/radeon/R600MachineFunctionInfo.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/R600MachineFunctionInfo.cpp b/src/gallium/drivers/radeon/R600MachineFunctionInfo.cpp
index 48443fb57d8..a31848efc99 100644
--- a/src/gallium/drivers/radeon/R600MachineFunctionInfo.cpp
+++ b/src/gallium/drivers/radeon/R600MachineFunctionInfo.cpp
@@ -12,5 +12,22 @@
using namespace llvm;
R600MachineFunctionInfo::R600MachineFunctionInfo(const MachineFunction &MF)
- : MachineFunctionInfo()
+ : MachineFunctionInfo(),
+ HasLinearInterpolation(false),
+ HasPerspectiveInterpolation(false)
{ }
+
+unsigned R600MachineFunctionInfo::GetIJPerspectiveIndex() const
+{
+ assert(HasPerspectiveInterpolation);
+ return 0;
+}
+
+unsigned R600MachineFunctionInfo::GetIJLinearIndex() const
+{
+ assert(HasLinearInterpolation);
+ if (HasPerspectiveInterpolation)
+ return 1;
+ else
+ return 0;
+}