Skip to content
This repository
Browse code

[osx] fixed again, not all GPU are named the same

  • Loading branch information...
commit e6e389d35f45b364372de79430465d1604e18f42 1 parent 8a34571
authored February 13, 2013
25  xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecVDA.cpp
@@ -805,13 +805,26 @@ bool CDVDVideoCodecVDA::Open(CDVDStreamInfo &hints, CDVDCodecOptions &options)
805 805
 
806 806
     CStdString rendervendor = g_Windowing.GetRenderVendor();
807 807
     rendervendor.MakeLower();
808  
-
809  
-    m_decode_async = true;
810  
-    if (rendervendor.find("ati technologies") != std::string::npos)
  808
+    if (rendervendor.find("nvidia") != std::string::npos)
  809
+    {
  810
+      // Nvidia gpu's are all powerful and work the way god intended
  811
+      m_decode_async = true;
  812
+      m_use_cvBufferRef = true;
  813
+    }
  814
+    else if (rendervendor.find("intel") != std::string::npos)
  815
+    {
  816
+      // Intel gpu are borked when using cvBufferRef
  817
+      m_decode_async = true;
  818
+      m_use_cvBufferRef = false;
  819
+    }
  820
+    else
  821
+    {
  822
+      // ATI gpu's are borked when using async decode
811 823
       m_decode_async = false;
  824
+      m_use_cvBufferRef = true;
  825
+    }
812 826
 
813  
-    m_use_cvBufferRef = true;
814  
-    if (rendervendor.find("intel corporation") != std::string::npos)
  827
+    if (!m_use_cvBufferRef)
815 828
     {
816 829
       m_dllSwScale = new DllSwScale;
817 830
       if (!m_dllSwScale->Load())
@@ -851,8 +864,6 @@ bool CDVDVideoCodecVDA::Open(CDVDStreamInfo &hints, CDVDCodecOptions &options)
851 864
       memset(m_videobuffer.data[0], 0, iPixels);
852 865
       memset(m_videobuffer.data[1], 0, iChromaPixels);
853 866
       memset(m_videobuffer.data[2], 0, iChromaPixels);
854  
-
855  
-      m_use_cvBufferRef = false;
856 867
     }
857 868
 
858 869
     // setup the decoder configuration dict

0 notes on commit e6e389d

Karlson2k

No any other GPUs available on Mac? Only nvidia, ati and intel?

Zeljko Ametovic

how do I run this on my Hackintosh now?

Please sign in to comment.
Something went wrong with that request. Please try again.