* 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:
Alexander von Gluck IV
2011-08-07 05:24:23 +00:00
parent 77e8ac07c6
commit 0cd93754a4
2 changed files with 5 additions and 4 deletions
@@ -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);
+3 -3
View File
@@ -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;
}