xf86-video-ati: Branch 'master'

Jerome Glisse glisse at kemper.freedesktop.org
Tue Feb 7 12:07:08 PST 2012


 src/evergreen_exa.c                 |   31 -------------------------------
 src/evergreen_textured_videofuncs.c |    3 ---
 src/r600_exa.c                      |   29 -----------------------------
 src/r600_textured_videofuncs.c      |    3 ---
 4 files changed, 66 deletions(-)

New commits:
commit c8f104d38870f14049402bbc14f662c151caeeef
Author: Jerome Glisse <jglisse at redhat.com>
Date:   Tue Feb 7 15:04:37 2012 -0500

    radeon: fix tiling for weird resolution
    
    Should also fix xv for some case.
    
    Signed-off-by: Jerome Glisse <jglisse at redhat.com>

diff --git a/src/evergreen_exa.c b/src/evergreen_exa.c
index 8c32245..ac0b5bb 100644
--- a/src/evergreen_exa.c
+++ b/src/evergreen_exa.c
@@ -78,9 +78,6 @@ EVERGREENPrepareSolid(PixmapPtr pPix, int alu, Pixel pm, Pixel fg)
     dst.bo = radeon_get_pixmap_bo(pPix);
     dst.tiling_flags = radeon_get_pixmap_tiling(pPix);
     dst.surface = radeon_get_pixmap_surface(pPix);
-    if (dst.surface->npix_x != pPix->drawable.width) {
-	dst.surface = NULL;
-    }
 
     dst.pitch = exaGetPixmapPitch(pPix) / (pPix->drawable.bitsPerPixel / 8);
     dst.width = pPix->drawable.width;
@@ -478,14 +475,6 @@ EVERGREENPrepareCopy(PixmapPtr pSrc,   PixmapPtr pDst,
     src_obj.surface = radeon_get_pixmap_surface(pSrc);
     dst_obj.tiling_flags = radeon_get_pixmap_tiling(pDst);
     src_obj.tiling_flags = radeon_get_pixmap_tiling(pSrc);
-    if (dst_obj.surface->npix_x != pDst->drawable.width) {
-        dst_obj.surface = NULL;
-	dst_obj.tiling_flags = 0;
-    }
-    if (src_obj.surface->npix_x != pSrc->drawable.width) {
-        src_obj.surface = NULL;
-	src_obj.tiling_flags = 0;
-    }
     if (radeon_get_pixmap_bo(pSrc) == radeon_get_pixmap_bo(pDst))
 	accel_state->same_surface = TRUE;
 
@@ -1164,15 +1153,6 @@ static Bool EVERGREENPrepareComposite(int op, PicturePtr pSrcPicture,
     src_obj.surface = radeon_get_pixmap_surface(pSrc);
     dst_obj.tiling_flags = radeon_get_pixmap_tiling(pDst);
     src_obj.tiling_flags = radeon_get_pixmap_tiling(pSrc);
-    if (dst_obj.surface->npix_x != pDst->drawable.width) {
-        dst_obj.surface = NULL;
-	dst_obj.tiling_flags = 0;
-    }
-    if (src_obj.surface->npix_x != pSrc->drawable.width) {
-        src_obj.surface = NULL;
-	src_obj.tiling_flags = 0;
-    }
-
     src_obj.pitch = exaGetPixmapPitch(pSrc) / (pSrc->drawable.bitsPerPixel / 8);
     dst_obj.pitch = exaGetPixmapPitch(pDst) / (pDst->drawable.bitsPerPixel / 8);
 
@@ -1192,10 +1172,6 @@ static Bool EVERGREENPrepareComposite(int op, PicturePtr pSrcPicture,
 	mask_obj.tiling_flags = radeon_get_pixmap_tiling(pMask);
 	mask_obj.pitch = exaGetPixmapPitch(pMask) / (pMask->drawable.bitsPerPixel / 8);
 	mask_obj.surface = radeon_get_pixmap_surface(pMask);
-	if (mask_obj.surface->npix_x != pMask->drawable.width) {
-		mask_obj.surface = NULL;
-	}
-
 	mask_obj.width = pMask->drawable.width;
 	mask_obj.height = pMask->drawable.height;
 	mask_obj.bpp = pMask->drawable.bitsPerPixel;
@@ -1553,10 +1529,6 @@ EVERGREENUploadToScreen(PixmapPtr pDst, int x, int y, int w, int h,
     dst_obj.bo = radeon_get_pixmap_bo(pDst);
     dst_obj.tiling_flags = radeon_get_pixmap_tiling(pDst);
     dst_obj.surface = radeon_get_pixmap_surface(pDst);
-    if (dst_obj.surface->npix_x != pDst->drawable.width) {
-	dst_obj.surface = NULL;
-	dst_obj.tiling_flags = 0;
-    }
 
     if (!R600SetAccelState(pScrn,
 			   &src_obj,
@@ -1688,9 +1660,6 @@ EVERGREENDownloadFromScreen(PixmapPtr pSrc, int x, int y, int w,
     src_obj.bo = radeon_get_pixmap_bo(pSrc);
     src_obj.tiling_flags = radeon_get_pixmap_tiling(pSrc);
     src_obj.surface = radeon_get_pixmap_surface(pSrc);
-    if (src_obj.surface->npix_x != pSrc->drawable.width) {
-	    src_obj.surface = NULL;
-    }
 
     dst_obj.pitch = scratch_pitch;
     dst_obj.width = w;
diff --git a/src/evergreen_textured_videofuncs.c b/src/evergreen_textured_videofuncs.c
index 4cf8640..94cb7fc 100644
--- a/src/evergreen_textured_videofuncs.c
+++ b/src/evergreen_textured_videofuncs.c
@@ -159,9 +159,6 @@ EVERGREENDisplayTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv)
     dst_obj.bo = radeon_get_pixmap_bo(pPixmap);
     dst_obj.tiling_flags = radeon_get_pixmap_tiling(pPixmap);
     dst_obj.surface = radeon_get_pixmap_surface(pPixmap);
-    if (dst_obj.surface->npix_x != pPixmap->drawable.width) {
-	    dst_obj.surface = NULL;
-    }
 
     dst_obj.pitch = exaGetPixmapPitch(pPixmap) / (pPixmap->drawable.bitsPerPixel / 8);
 
diff --git a/src/r600_exa.c b/src/r600_exa.c
index 47218d8..595248a 100644
--- a/src/r600_exa.c
+++ b/src/r600_exa.c
@@ -195,9 +195,6 @@ R600PrepareSolid(PixmapPtr pPix, int alu, Pixel pm, Pixel fg)
 	dst.bo = radeon_get_pixmap_bo(pPix);
 	dst.tiling_flags = radeon_get_pixmap_tiling(pPix);
 	dst.surface = radeon_get_pixmap_surface(pPix);
-	if (dst.surface->npix_x != pPix->drawable.width) {
-		dst.surface = NULL;
-	}
     } else
 #endif
     {
@@ -597,14 +594,6 @@ R600PrepareCopy(PixmapPtr pSrc,   PixmapPtr pDst,
 	src_obj.tiling_flags = radeon_get_pixmap_tiling(pSrc);
 	src_obj.surface = radeon_get_pixmap_surface(pSrc);
 	dst_obj.surface = radeon_get_pixmap_surface(pDst);
-	if (dst_obj.surface->npix_x != pDst->drawable.width) {
-		dst_obj.surface = NULL;
-		dst_obj.tiling_flags = 0;
-	}
-	if (src_obj.surface->npix_x != pSrc->drawable.width) {
-		src_obj.surface = NULL;
-		src_obj.tiling_flags = 0;
-	}
 	if (radeon_get_pixmap_bo(pSrc) == radeon_get_pixmap_bo(pDst))
 	    accel_state->same_surface = TRUE;
     } else
@@ -1314,14 +1303,6 @@ static Bool R600PrepareComposite(int op, PicturePtr pSrcPicture,
 	src_obj.tiling_flags = radeon_get_pixmap_tiling(pSrc);
 	dst_obj.surface = radeon_get_pixmap_surface(pDst);
 	src_obj.surface = radeon_get_pixmap_surface(pSrc);
-	if (dst_obj.surface->npix_x != pDst->drawable.width) {
-		dst_obj.surface = NULL;
-		dst_obj.tiling_flags = 0;
-	}
-	if (src_obj.surface->npix_x != pSrc->drawable.width) {
-		src_obj.surface = NULL;
-		src_obj.tiling_flags = 0;
-	}
     } else
 #endif
     {
@@ -1350,9 +1331,6 @@ static Bool R600PrepareComposite(int op, PicturePtr pSrcPicture,
 	    mask_obj.bo = radeon_get_pixmap_bo(pMask);
 	    mask_obj.tiling_flags = radeon_get_pixmap_tiling(pMask);
 	    mask_obj.surface = radeon_get_pixmap_surface(pMask);
-	    if (mask_obj.surface->npix_x != pMask->drawable.width) {
-		mask_obj.surface = NULL;
-	    }
 	} else
 #endif
 	{
@@ -1912,10 +1890,6 @@ R600UploadToScreenCS(PixmapPtr pDst, int x, int y, int w, int h,
     dst_obj.bo = radeon_get_pixmap_bo(pDst);
     dst_obj.tiling_flags = radeon_get_pixmap_tiling(pDst);
     dst_obj.surface = radeon_get_pixmap_surface(pDst);
-    if (dst_obj.surface->npix_x != pDst->drawable.width) {
-	dst_obj.surface = NULL;
-	dst_obj.tiling_flags = 0;
-    }
 
     if (!R600SetAccelState(pScrn,
 			   &src_obj,
@@ -2043,9 +2017,6 @@ R600DownloadFromScreenCS(PixmapPtr pSrc, int x, int y, int w,
     src_obj.bo = radeon_get_pixmap_bo(pSrc);
     src_obj.tiling_flags = radeon_get_pixmap_tiling(pSrc);
     src_obj.surface = radeon_get_pixmap_surface(pSrc);
-    if (src_obj.surface->npix_x != pSrc->drawable.width) {
-	src_obj.surface = NULL;
-    }
 
     dst_obj.pitch = scratch_pitch;
     dst_obj.width = w;
diff --git a/src/r600_textured_videofuncs.c b/src/r600_textured_videofuncs.c
index fbaa9b1..8b12caf 100644
--- a/src/r600_textured_videofuncs.c
+++ b/src/r600_textured_videofuncs.c
@@ -171,9 +171,6 @@ R600DisplayTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv)
 	dst_obj.bo = radeon_get_pixmap_bo(pPixmap);
 	dst_obj.tiling_flags = radeon_get_pixmap_tiling(pPixmap);
 	dst_obj.surface = radeon_get_pixmap_surface(pPixmap);
-	if (dst_obj.surface->npix_x != pPixmap->drawable.width) {
-		dst_obj.surface = NULL;
-	}
     } else
 #endif
     {


More information about the xorg-commit mailing list