Subversion Repositories Kolibri OS

Rev

Rev 877 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 877 Rev 878
Line 349... Line 349...
349
 
349
 
350
void  R5xx2DInit()
350
void  R5xx2DInit()
351
{
351
{
-
 
352
    u32_t base;
-
 
353
    int screensize;
Line 352... Line -...
352
    u32_t base;
-
 
353
 
354
    int screenpitch;
354
#ifdef R300_TEST
355
 
355
    rhd.displayWidth  = 1024;
356
    screensize = GetScreenSize();
356
    rhd.displayHeight = 768;
357
    screenpitch = GetScreenPitch();
357
#else
358
 
358
    rhd.displayWidth  = INREG(D1GRPH_X_END);
-
 
Line 359... Line 359...
359
    rhd.displayHeight = INREG(D1GRPH_Y_END);
359
    rhd.displayWidth  = screensize >> 16;
360
#endif
360
    rhd.displayHeight = screensize & 0xFFFF;
361
 
361
 
362
    rhd.__xmin = 0;
362
    rhd.__xmin = 0;
Line 377... Line 377...
377
 
377
 
Line 378... Line 378...
378
    dbgprintf("gui_control %x \n", rhd.gui_control);
378
    dbgprintf("gui_control %x \n", rhd.gui_control);
Line 379... Line 379...
379
 
379
 
380
    rhd.surface_cntl = 0;
380
    rhd.surface_cntl = 0;
381
    rhd.dst_pitch_offset = (((rhd.displayWidth * 4) / 64) << 22) |
381
    rhd.dst_pitch_offset = ((screenpitch / 64) << 22) |
Line 382... Line 382...
382
                            ((rhd.FbIntAddress + rhd.FbScanoutStart) >> 10);
382
                            ((rhd.FbIntAddress + rhd.FbScanoutStart) >> 10);
Line 383... Line 383...
383
 
383
 
384
    dbgprintf("dst_pitch_offset %x \n", rhd.dst_pitch_offset);
384
    dbgprintf("dst_pitch_offset %x \n", rhd.dst_pitch_offset);
385
 
385
 
386
 
386
 
387
    scr_pixmap.width  = rhd.displayWidth;
387
    scr_pixmap.width  = rhd.displayWidth;
388
    scr_pixmap.height = rhd.displayHeight;
388
    scr_pixmap.height = rhd.displayHeight;
389
    scr_pixmap.format = PICT_a8r8g8b8;
389
    scr_pixmap.format = PICT_a8r8g8b8;
Line 435... Line 435...
435
                              RADEON_ISYNC_CPSCRATCH_IDLEGUI);
435
                              RADEON_ISYNC_CPSCRATCH_IDLEGUI);
436
 
436
 
Line 437... Line 437...
437
    OUTREG(RADEON_CP_CSQ_CNTL, RADEON_CSQ_PRIBM_INDBM);    // run
437
    OUTREG(RADEON_CP_CSQ_CNTL, RADEON_CSQ_PRIBM_INDBM);    // run
Line 438... Line -...
438
 
-
 
439
 
-
 
440
 //   OUTREG(D1CUR_SIZE, (31<<16)|31);
-
 
441
 //   OUTREG(D1CUR_CONTROL, 0x300);
438