r300 driver side of color tiling support.
authorAapo Tahkola <aet@rasterburn.org>
Tue, 21 Jun 2005 15:41:03 +0000 (15:41 +0000)
committerAapo Tahkola <aet@rasterburn.org>
Tue, 21 Jun 2005 15:41:03 +0000 (15:41 +0000)
src/mesa/drivers/dri/r300/r300_ioctl.c
src/mesa/drivers/dri/r300/r300_state.c
src/mesa/drivers/dri/r300/radeon_screen.c

index 8d752f90b75c0420fbe65aa629192d4a4efa5610..255f17aee9fdaa03079c97d3ba9d5d578572c39a 100644 (file)
@@ -130,6 +130,9 @@ static void r300ClearBuffer(r300ContextPtr r300, int flags, int buffer)
        else
                cbpitch |= R300_COLOR_FORMAT_RGB565;
        
+       if (r300->radeon.sarea->tiling_enabled)
+               cbpitch |= R300_COLOR_TILE_ENABLE;
+       
        R300_STATECHANGE(r300, cb);
        r300->hw.cb.cmd[R300_CB_OFFSET] = cboffset;
        r300->hw.cb.cmd[R300_CB_PITCH] = cbpitch;
index d8feb1954278d95b2ca34068cdca772ad89d2d33..68aeb5efdfc84f738d98e1de28364be0e0e072ba 100644 (file)
@@ -2160,6 +2160,9 @@ void r300ResetHwState(r300ContextPtr r300)
        else
                r300->hw.cb.cmd[R300_CB_PITCH] |= R300_COLOR_FORMAT_RGB565;
        
+       if (r300->radeon.sarea->tiling_enabled)
+               r300->hw.cb.cmd[R300_CB_PITCH] |= R300_COLOR_TILE_ENABLE;
+       
        r300->hw.unk4E50.cmd[1] = 0;
        r300->hw.unk4E50.cmd[2] = 0;
        r300->hw.unk4E50.cmd[3] = 0;
index 394b6b099d211358e5d2acfdd5efe886f098504a..dea0d21562f2c2e12ae6d88face14f37be203065 100644 (file)
@@ -833,11 +833,11 @@ void *__driCreateNewScreen(__DRInativeDisplay * dpy, int scrn,
                           __GLcontextModes ** driver_modes)
 {
        __DRIscreenPrivate *psp;
-       static const __DRIversion ddx_expected = { 4, 0, 0 };
+       static const __DRIutilversion2 ddx_expected = { 4, 5, 0, 0 };
        static const __DRIversion dri_expected = { 4, 0, 0 };
        static const __DRIversion drm_expected = { 1, 11, 1 };
 
-       if (!driCheckDriDdxDrmVersions2("R300",
+       if (!driCheckDriDdxDrmVersions3("R300",
                                        dri_version, &dri_expected,
                                        ddx_version, &ddx_expected,
                                        drm_version, &drm_expected)) {