Bug 13494 - assertion failure when call glDrawPixels
Summary: assertion failure when call glDrawPixels
Status: VERIFIED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i915 (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: high major
Assignee: haihao
QA Contact:
URL:
Whiteboard:
Keywords:
: 12570 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-12-02 22:33 UTC by WuNian
Modified: 2009-08-24 12:28 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description WuNian 2007-12-02 22:33:08 UTC
When run mesa demo drawpix, it exists with assertion failure:
drawpix: i915_vtbl.c:448: i915_do_emit_state: Assertion `(state->Program[0] & 0x1ff) + 2 == state->ProgramSize' failed.

I use the tip of Mesa & Drm. Mesa 7.0.2 has no this bug.

Below is the backtrace info:
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x009d1159 in raise () from /lib/libc.so.6
#2  0x009d26e3 in abort () from /lib/libc.so.6
#3  0x009caabd in __assert_fail () from /lib/libc.so.6
#4  0xb7ac53ce in i915_do_emit_state (intel=0x805ac08) at i915_vtbl.c:448
#5  0xb7ac548a in i915_emit_state (intel=0x805ac08) at i915_vtbl.c:464
#6  0xb7ab5b1a in intelDrawPixels (ctx=0x805ac08, x=20, y=20, width=194, 
    height=188, format=6407, type=5121, unpack=0x806689c, pixels=0x832a620)
    at intel_pixel_draw.c:68
#7  0xb7bfce0c in _mesa_DrawPixels (width=194, height=188, format=6407, 
    type=5121, pixels=0x832a620) at main/drawpix.c:186
#8  0xb7ec1e12 in glDrawPixels (width=194, height=188, format=6407, type=5121, 
    pixels=0x832a620) at ../../../src/mesa/glapi/glapitemp.h:1370
#9  0x08049601 in Display () at drawpix.c:69
#10 0xb7f6b53f in processWindowWorkList (window=0x8051af0) at glut_event.c:1306
#11 0xb7f6c012 in glutMainLoop () at glut_event.c:1353
#12 0x080494dc in main (argc=Cannot access memory at address 0x3bd9
) at drawpix.c:356
Comment 1 Gordon Jin 2007-12-05 23:37:19 UTC
This is high priority bug. Probably introduced by ttm merge.
Comment 2 haihao 2007-12-07 01:31:21 UTC
fixed in mesa e2ca788ae700aae75bf8d024c1374c38cc5574f9
Comment 3 haihao 2008-03-05 00:04:21 UTC
*** Bug 12570 has been marked as a duplicate of this bug. ***
Comment 4 Adam Jackson 2009-08-24 12:28:31 UTC
Mass version move, cvs -> git


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.