* init scratch before card post
* B_OK != 1!, so don't if (status_t) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42592 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1329,7 +1329,8 @@ atom_allocate_fb_scratch(atom_context *ctx)
|
||||
int usage_bytes = 0;
|
||||
_ATOM_VRAM_USAGE_BY_FIRMWARE *firmware;
|
||||
|
||||
if (atom_parse_data_header(ctx, index, NULL, NULL, NULL, &data_offset)) {
|
||||
if (atom_parse_data_header(ctx, index, NULL, NULL, NULL, &data_offset)
|
||||
== B_OK) {
|
||||
firmware = (_ATOM_VRAM_USAGE_BY_FIRMWARE *)
|
||||
((uint16*)ctx->bios + data_offset);
|
||||
|
||||
|
||||
@@ -107,11 +107,11 @@ radeon_init_bios(uint8* bios)
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
atom_asic_init(gAtomContext);
|
||||
// Post card
|
||||
|
||||
radeon_bios_init_scratch();
|
||||
atom_allocate_fb_scratch(gAtomContext);
|
||||
|
||||
atom_asic_init(gAtomContext);
|
||||
// Post card
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user