diff options
Diffstat (limited to 'src/gallium/drivers/radeon/R600MachineFunctionInfo.cpp')
-rw-r--r-- | src/gallium/drivers/radeon/R600MachineFunctionInfo.cpp | 19 |
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; +} |