http://bugs.freedesktop.org/show_bug.cgi?id=14313

           Summary: [i915 PBO TTM] read pixels through PBO not working when
                    pixel alignment is 1
           Product: Mesa
           Version: unspecified
          Platform: Other
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/DRI/i915
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: dri-devel@lists.sourceforge.net


Created an attachment (id=14048)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=14048)
test case

System Environment:
--------------------------
Platform: 945gm 915gm 915gv 945g
drm   
commit c6f175cbea1dba3fc26426243acc55b89b8a8064

mesa 
commit 02d5ba849197e19843dad164239b51f18fb16faf

xf86_video_intel 
commit 633dbd28218fd8a746c1735fd44a14f35bd07faa 



Bug detailed description:
--------------------------
this issue only happen when pixel alignment is 1, in GL_BGRA format, and
GL_UNSIGNED_BYTE
reading 8x8 pixels back through PBO(pixel alignment is 1, in GL_BGRA format,
GL_UNSIGNED_BYTE) does not return expected result. seems following patch fix
this, but glean test case readpixPerf still fails(it get 1000x1000 pixels
back):

diff --git a/configs/linux-dri b/configs/linux-dri
diff --git a/src/mesa/drivers/dri/i915/intel_pixel_read.c
b/src/mesa/drivers/dri/i915/intel_pixel_read.c
index 2e31656..0b80309 100644
--- a/src/mesa/drivers/dri/i915/intel_pixel_read.c
+++ b/src/mesa/drivers/dri/i915/intel_pixel_read.c
@@ -222,9 +222,6 @@ do_blit_readpixels(GLcontext * ctx,
          _mesa_printf("%s: MESA_PACK_INVERT not done yet\n", __FUNCTION__);
       return GL_FALSE;
    }
-   else {
-      rowLength = -rowLength;
-   }

    /* XXX 64-bit cast? */
    dst_offset = (GLuint) _mesa_image_address(2, pack, pixels, width, height,






Reproduce steps:
----------------
start X
compile & run attach test case, or
run glean -r log -t +readpixPerf


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to