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:
@@ -12,7 +12,10 @@ DEFINES += ENABLE_ALL_SERVICE_FUNCTIONS ;
|
|||||||
# To avoid changing AMD vendor sources
|
# To avoid changing AMD vendor sources
|
||||||
TARGET_WARNING_CCFLAGS = [ FFilter $(TARGET_WARNING_CCFLAGS)
|
TARGET_WARNING_CCFLAGS = [ FFilter $(TARGET_WARNING_CCFLAGS)
|
||||||
: -Wall -Wmissing-prototypes -Wcast-align ] ;
|
: -Wall -Wmissing-prototypes -Wcast-align ] ;
|
||||||
|
|
||||||
|
if $(HAIKU_GCC_VERSION[1]) = 4 {
|
||||||
TARGET_WARNING_CCFLAGS += -Wno-pointer-to-int-cast ;
|
TARGET_WARNING_CCFLAGS += -Wno-pointer-to-int-cast ;
|
||||||
|
}
|
||||||
|
|
||||||
StaticLibrary atombios.a :
|
StaticLibrary atombios.a :
|
||||||
Decoder.c
|
Decoder.c
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ CardFBSet(display_mode *mode)
|
|||||||
uint64_t fbAddress = gInfo->shared_info->frame_buffer_phys;
|
uint64_t fbAddress = gInfo->shared_info->frame_buffer_phys;
|
||||||
|
|
||||||
// Tell GPU which frame buffer address to draw from
|
// 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,
|
write32(gRegister->grphPrimarySurfaceAddrHigh,
|
||||||
(fbAddress >> 32) & 0xf);
|
(fbAddress >> 32) & 0xf);
|
||||||
write32(gRegister->grphSecondarySurfaceAddrHigh,
|
write32(gRegister->grphSecondarySurfaceAddrHigh,
|
||||||
|
|||||||
Reference in New Issue
Block a user