Bug 15695

Summary: [i915] do_draw_pix(): wrong dst_pitch passed to intelEmitCopyBlitLocked()
Product: Mesa Reporter: Christopher Dissauer <dizzy>
Component: Drivers/DRI/i915Assignee: haihao <haihao.xiang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86 (IA32)   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Christopher Dissauer 2008-04-24 11:59:35 UTC
The function intelEmitCopyBlitLocked() (in file intel_batchbuffer.c) expects source and destination pitch in pixels, but the call from do_draw_pix() (in file intel_pixel.c) retrieves the screen's pitch via intel->intelScreen->front.pitch, which is specified in bytes.

The same problem is also evident in intelTryReadPixels().
Comment 1 haihao 2008-06-17 22:54:02 UTC
fixed in mesa_7_0_branch (3ed89025f3df9e72afe0a77c847aab13b2ee861b)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.