[haiku-commits] r42898 - haiku/trunk/src/add-ons/accelerants/radeon_hd

  • From: kallisti5@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 22 Oct 2011 00:44:24 +0200 (CEST)

Author: kallisti5
Date: 2011-10-22 00:44:23 +0200 (Sat, 22 Oct 2011)
New Revision: 42898
Changeset: https://dev.haiku-os.org/changeset/42898

Modified:
   haiku/trunk/src/add-ons/accelerants/radeon_hd/display.cpp
Log:
* start using DCE versions in framebuffer code as it
  gives us finer control


Modified: haiku/trunk/src/add-ons/accelerants/radeon_hd/display.cpp
===================================================================
--- haiku/trunk/src/add-ons/accelerants/radeon_hd/display.cpp   2011-10-21 
22:13:58 UTC (rev 42897)
+++ haiku/trunk/src/add-ons/accelerants/radeon_hd/display.cpp   2011-10-21 
22:44:23 UTC (rev 42898)
@@ -846,7 +846,7 @@
        args.ucScaler = crtcID;
        args.ucEnable = ATOM_SCALER_EXPANSION;
 
-       atom_execute_table(gAtomContext, index, (uint32 *)&args);
+       atom_execute_table(gAtomContext, index, (uint32*)&args);
 }
 
 
@@ -857,7 +857,7 @@
        register_info* regs = gDisplay[crtcID]->regs;
 
        uint32 fbSwap;
-       if (info.device_chipset >= RADEON_R1000)
+       if (info.dceMajor >= 4)
                fbSwap = EVERGREEN_GRPH_ENDIAN_SWAP(EVERGREEN_GRPH_ENDIAN_NONE);
        else
                fbSwap = R600_D1GRPH_SWAP_ENDIAN_NONE;
@@ -871,7 +871,7 @@
                case B_CMAP8:
                        bytesPerPixel = 1;
                        bitsPerPixel = 8;
-                       if (info.device_chipset >= RADEON_R1000) { // DCE4
+                       if (info.dceMajor >= 4) {
                                fbFormat = 
(EVERGREEN_GRPH_DEPTH(EVERGREEN_GRPH_DEPTH_8BPP)
                                        | 
EVERGREEN_GRPH_FORMAT(EVERGREEN_GRPH_FORMAT_INDEXED));
                        } else {
@@ -882,7 +882,7 @@
                case B_RGB15_LITTLE:
                        bytesPerPixel = 2;
                        bitsPerPixel = 15;
-                       if (info.device_chipset >= RADEON_R1000) { // DCE4
+                       if (info.dceMajor >= 4) {
                                fbFormat = 
(EVERGREEN_GRPH_DEPTH(EVERGREEN_GRPH_DEPTH_16BPP)
                                        | 
EVERGREEN_GRPH_FORMAT(EVERGREEN_GRPH_FORMAT_ARGB1555));
                        } else {
@@ -894,7 +894,7 @@
                        bytesPerPixel = 2;
                        bitsPerPixel = 16;
 
-                       if (info.device_chipset >= RADEON_R1000) { // DCE4
+                       if (info.dceMajor >= 4) {
                                fbFormat = 
(EVERGREEN_GRPH_DEPTH(EVERGREEN_GRPH_DEPTH_16BPP)
                                        | 
EVERGREEN_GRPH_FORMAT(EVERGREEN_GRPH_FORMAT_ARGB565));
                                #ifdef __POWERPC__
@@ -914,7 +914,7 @@
                default:
                        bytesPerPixel = 4;
                        bitsPerPixel = 32;
-                       if (info.device_chipset >= RADEON_R1000) { // DCE4
+                       if (info.dceMajor >= 4) {
                                fbFormat = 
(EVERGREEN_GRPH_DEPTH(EVERGREEN_GRPH_DEPTH_32BPP)
                                        | 
EVERGREEN_GRPH_FORMAT(EVERGREEN_GRPH_FORMAT_ARGB8888));
                                #ifdef __POWERPC__
@@ -974,7 +974,7 @@
                (viewport_w << 16) | viewport_h);
 
        // Pageflip setup
-       if (info.device_chipset >= RADEON_R1000) { // DCE4
+       if (info.dceMajor >= 4) {
                uint32 tmp
                        = Read32(OUT, EVERGREEN_GRPH_FLIP_CONTROL + 
regs->crtcOffset);
                tmp &= ~EVERGREEN_GRPH_SURFACE_UPDATE_H_RETRACE_EN;


Other related posts:

  • » [haiku-commits] r42898 - haiku/trunk/src/add-ons/accelerants/radeon_hd - kallisti5