GCC2 build fixes on radeon_hd driver

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41858 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alexander von Gluck IV
2011-06-01 14:39:15 +00:00
parent 4d0944c90d
commit 057f5d1d50
2 changed files with 5 additions and 2 deletions
@@ -12,7 +12,10 @@ DEFINES += ENABLE_ALL_SERVICE_FUNCTIONS ;
# 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
+1 -1
View File
@@ -189,7 +189,7 @@ CardFBSet(display_mode *mode)
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,