[Mesa-dev] [PATCH 1/2] R600: Add some new processor variants

Tom Stellard tom at stellard.net
Mon Apr 29 13:07:15 PDT 2013


From: Tom Stellard <thomas.stellard at amd.com>

---
 lib/Target/R600/AMDILDeviceInfo.cpp | 2 +-
 lib/Target/R600/Processors.td       | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/Target/R600/AMDILDeviceInfo.cpp b/lib/Target/R600/AMDILDeviceInfo.cpp
index 19792b7..1787959 100644
--- a/lib/Target/R600/AMDILDeviceInfo.cpp
+++ b/lib/Target/R600/AMDILDeviceInfo.cpp
@@ -44,7 +44,7 @@ AMDGPUDevice* getDeviceFromName(const std::string &deviceName,
           " on 32bit pointers!");
 #endif
     return new AMDGPUEvergreenDevice(ptr);
-  } else if (deviceName == "redwood") {
+  } else if (deviceName == "redwood" || deviceName == "sumo") {
 #if DEBUG
     assert(!is64bit && "This device does not support 64bit pointers!");
     assert(!is64on32bit && "This device does not support 64bit"
diff --git a/lib/Target/R600/Processors.td b/lib/Target/R600/Processors.td
index b9229d4..c2cc63a 100644
--- a/lib/Target/R600/Processors.td
+++ b/lib/Target/R600/Processors.td
@@ -15,11 +15,13 @@ class Proc<string Name, ProcessorItineraries itin, list<SubtargetFeature> Featur
 : Processor<Name, itin, Features>;
 def : Proc<"",           R600_EG_Itin, [FeatureR600ALUInst]>;
 def : Proc<"r600",       R600_EG_Itin, [FeatureR600ALUInst]>;
+def : Proc<"rs880",      R600_EG_Itin, [FeatureR600ALUInst]>;
 def : Proc<"rv670",      R600_EG_Itin, [FeatureR600ALUInst, FeatureFP64]>;
 def : Proc<"rv710",      R600_EG_Itin, []>;
 def : Proc<"rv730",      R600_EG_Itin, []>;
 def : Proc<"rv770",      R600_EG_Itin, [FeatureFP64]>;
 def : Proc<"cedar",      R600_EG_Itin, [FeatureByteAddress, FeatureImages]>;
+def : Proc<"sumo",       R600_EG_Itin, [FeatureByteAddress, FeatureImages]>;
 def : Proc<"redwood",    R600_EG_Itin, [FeatureByteAddress, FeatureImages]>;
 def : Proc<"juniper",    R600_EG_Itin, [FeatureByteAddress, FeatureImages]>;
 def : Proc<"cypress",    R600_EG_Itin, [FeatureByteAddress, FeatureImages, FeatureFP64]>;
-- 
1.8.1.5



More information about the mesa-dev mailing list