ati.accelerant: 64 bit fixes
Change-Id: I0f82dfe7bc73122546d262ab7e94010f1adff500 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4115 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
parent
5a1731bcbc
commit
72e0f9bff5
@ -110,6 +110,7 @@ SYSTEM_ADD_ONS_DRIVERS_BT_H2 +=
|
||||
;
|
||||
|
||||
SYSTEM_ADD_ONS_ACCELERANTS += [ FFilterByBuildFeatures
|
||||
ati.accelerant
|
||||
x86,x86_64 @{
|
||||
intel_810.accelerant intel_extreme.accelerant
|
||||
matrox.accelerant
|
||||
@ -118,7 +119,7 @@ SYSTEM_ADD_ONS_ACCELERANTS += [ FFilterByBuildFeatures
|
||||
via.accelerant
|
||||
}@ # x86,x86_64
|
||||
x86 @{
|
||||
3dfx.accelerant ati.accelerant neomagic.accelerant s3.accelerant
|
||||
3dfx.accelerant neomagic.accelerant s3.accelerant
|
||||
}@ # x86
|
||||
] ;
|
||||
|
||||
|
@ -122,8 +122,8 @@ Mach64_DisplayOverlay(const overlay_window* window,
|
||||
OUTREG(VIDEO_FORMAT, videoFormat);
|
||||
|
||||
// Compute offset of overlay buffer in the video memory.
|
||||
uint32 offset = uint32(buffer->buffer) - si.videoMemAddr;
|
||||
|
||||
uint32 offset = (uint32)((addr_t)buffer->buffer - si.videoMemAddr);
|
||||
|
||||
if (si.chipType < MACH64_264VTB) {
|
||||
OUTREG(BUF0_OFFSET, offset);
|
||||
OUTREG(BUF0_PITCH, buffer->width);
|
||||
|
@ -264,7 +264,7 @@ ReleaseOverlay(overlay_token overlayToken)
|
||||
{
|
||||
SharedInfo& si = *gInfo.sharedInfo;
|
||||
|
||||
if (overlayToken != (overlay_token)si.overlayToken) {
|
||||
if (overlayToken != (overlay_token)(addr_t)si.overlayToken) {
|
||||
TRACE("ReleaseOverlay() error - no overlay previously allocated\n");
|
||||
return B_BAD_VALUE;
|
||||
}
|
||||
@ -285,7 +285,7 @@ ConfigureOverlay(overlay_token overlayToken, const overlay_buffer* buffer,
|
||||
{
|
||||
SharedInfo& si = *gInfo.sharedInfo;
|
||||
|
||||
if (overlayToken != (overlay_token)si.overlayToken)
|
||||
if (overlayToken != (overlay_token)(addr_t)si.overlayToken)
|
||||
return B_BAD_VALUE;
|
||||
|
||||
if (buffer == NULL)
|
||||
|
@ -131,7 +131,7 @@ Rage128_DisplayOverlay(const overlay_window* window,
|
||||
int32 p1_v_accum_init = ((tmp << 4) & 0x03ff8000) | 0x00000001;
|
||||
|
||||
// Compute offset of overlay buffer in the video memory.
|
||||
uint32 offset = uint32(buffer->buffer) - si.videoMemAddr;
|
||||
uint32 offset = (uint32)((addr_t)buffer->buffer - si.videoMemAddr);
|
||||
|
||||
OUTREG(R128_OV0_REG_LOAD_CNTL, 1);
|
||||
while (!(INREG(R128_OV0_REG_LOAD_CNTL) & (1 << 3)))
|
||||
|
Loading…
Reference in New Issue
Block a user