summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/AMDILNIDevice.cpp
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2013-01-04 15:38:37 +0000
committerTom Stellard <[email protected]>2013-01-04 21:05:09 +0000
commitaed37cbee8efb59b2f1a6bc69adcbaecd9e4fa13 (patch)
tree5748d373dc01011b860049208135c3d942882e29 /src/gallium/drivers/radeon/AMDILNIDevice.cpp
parent05c143cc049a87c515ecdc5695e5912da60cf5cb (diff)
radeon/llvm: Remove backend code from Mesa
This code now lives in an external tree. For the next Mesa release fetch the code from the master branch of this LLVM repo: http://cgit.freedesktop.org/~tstellar/llvm/ For all subsequent Mesa releases, fetch the code from the official LLVM project: www.llvm.org
Diffstat (limited to 'src/gallium/drivers/radeon/AMDILNIDevice.cpp')
-rw-r--r--src/gallium/drivers/radeon/AMDILNIDevice.cpp71
1 files changed, 0 insertions, 71 deletions
diff --git a/src/gallium/drivers/radeon/AMDILNIDevice.cpp b/src/gallium/drivers/radeon/AMDILNIDevice.cpp
deleted file mode 100644
index 0ebbc9d1e06..00000000000
--- a/src/gallium/drivers/radeon/AMDILNIDevice.cpp
+++ /dev/null
@@ -1,71 +0,0 @@
-//===-- AMDILNIDevice.cpp - Device Info for Northern Islands devices ------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//==-----------------------------------------------------------------------===//
-#include "AMDILNIDevice.h"
-#include "AMDILEvergreenDevice.h"
-#include "AMDGPUSubtarget.h"
-
-using namespace llvm;
-
-AMDGPUNIDevice::AMDGPUNIDevice(AMDGPUSubtarget *ST)
- : AMDGPUEvergreenDevice(ST)
-{
- std::string name = ST->getDeviceName();
- if (name == "caicos") {
- mDeviceFlag = OCL_DEVICE_CAICOS;
- } else if (name == "turks") {
- mDeviceFlag = OCL_DEVICE_TURKS;
- } else if (name == "cayman") {
- mDeviceFlag = OCL_DEVICE_CAYMAN;
- } else {
- mDeviceFlag = OCL_DEVICE_BARTS;
- }
-}
-AMDGPUNIDevice::~AMDGPUNIDevice()
-{
-}
-
-size_t
-AMDGPUNIDevice::getMaxLDSSize() const
-{
- if (usesHardware(AMDGPUDeviceInfo::LocalMem)) {
- return MAX_LDS_SIZE_900;
- } else {
- return 0;
- }
-}
-
-uint32_t
-AMDGPUNIDevice::getGeneration() const
-{
- return AMDGPUDeviceInfo::HD6XXX;
-}
-
-
-AMDGPUCaymanDevice::AMDGPUCaymanDevice(AMDGPUSubtarget *ST)
- : AMDGPUNIDevice(ST)
-{
- setCaps();
-}
-
-AMDGPUCaymanDevice::~AMDGPUCaymanDevice()
-{
-}
-
-void
-AMDGPUCaymanDevice::setCaps()
-{
- if (mSTM->isOverride(AMDGPUDeviceInfo::DoubleOps)) {
- mHWBits.set(AMDGPUDeviceInfo::DoubleOps);
- mHWBits.set(AMDGPUDeviceInfo::FMA);
- }
- mHWBits.set(AMDGPUDeviceInfo::Signed24BitOps);
- mSWBits.reset(AMDGPUDeviceInfo::Signed24BitOps);
- mSWBits.set(AMDGPUDeviceInfo::ArenaSegment);
-}
-