[haiku-commits] r41858 - in haiku/trunk/src/add-ons/accelerants/radeon_hd: . atombios

  • From: kallisti5@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 1 Jun 2011 16:39:16 +0200 (CEST)

Author: kallisti5
Date: 2011-06-01 16:39:15 +0200 (Wed, 01 Jun 2011)
New Revision: 41858
Changeset: https://dev.haiku-os.org/changeset/41858

Modified:
   haiku/trunk/src/add-ons/accelerants/radeon_hd/atombios/Jamfile
   haiku/trunk/src/add-ons/accelerants/radeon_hd/mode.cpp
Log:
GCC2 build fixes on radeon_hd driver

Modified: haiku/trunk/src/add-ons/accelerants/radeon_hd/atombios/Jamfile
===================================================================
--- haiku/trunk/src/add-ons/accelerants/radeon_hd/atombios/Jamfile      
2011-05-31 22:10:11 UTC (rev 41857)
+++ haiku/trunk/src/add-ons/accelerants/radeon_hd/atombios/Jamfile      
2011-06-01 14:39:15 UTC (rev 41858)
@@ -12,8 +12,11 @@
 # To avoid changing AMD vendor sources
 TARGET_WARNING_CCFLAGS = [ FFilter $(TARGET_WARNING_CCFLAGS)
        : -Wall -Wmissing-prototypes -Wcast-align ] ;
-TARGET_WARNING_CCFLAGS += -Wno-pointer-to-int-cast ;
 
+if $(HAIKU_GCC_VERSION[1]) = 4 {
+       TARGET_WARNING_CCFLAGS += -Wno-pointer-to-int-cast ;
+}
+
 StaticLibrary atombios.a :
        Decoder.c
        CD_Operations.c

Modified: haiku/trunk/src/add-ons/accelerants/radeon_hd/mode.cpp
===================================================================
--- haiku/trunk/src/add-ons/accelerants/radeon_hd/mode.cpp      2011-05-31 
22:10:11 UTC (rev 41857)
+++ haiku/trunk/src/add-ons/accelerants/radeon_hd/mode.cpp      2011-06-01 
14:39:15 UTC (rev 41858)
@@ -189,7 +189,7 @@
        uint64_t fbAddress = gInfo->shared_info->frame_buffer_phys;
 
        // Tell GPU which frame buffer address to draw from
-       if (gInfo->shared_info->device_chipset >= (RADEON_R700 & 0x70)) {
+       if (gInfo->shared_info->device_chipset >= (uint16)RADEON_R700 & 0x70) {
                write32(gRegister->grphPrimarySurfaceAddrHigh,
                        (fbAddress >> 32) & 0xf);
                write32(gRegister->grphSecondarySurfaceAddrHigh,


Other related posts:

  • » [haiku-commits] r41858 - in haiku/trunk/src/add-ons/accelerants/radeon_hd: . atombios - kallisti5