Bug 63688 - [gm45, bisected] Almost every app crash in brw_eu_emit.c:227: validate_reg: Assertion `vstride == 0' failed.
Summary: [gm45, bisected] Almost every app crash in brw_eu_emit.c:227: validate_reg: A...
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: git
Hardware: Other All
: medium blocker
Assignee: Ian Romanick
QA Contact:
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2013-04-18 14:50 UTC by Pavel Ondračka
Modified: 2013-04-19 04:52 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Pavel Ondračka 2013-04-18 14:50:31 UTC
Reproducible with glxgears, thousands of piglit tests and almost every other GL app...

first bad commit:
commit ecdda414d361ab4430fd5747c9217687c1f3d63f
Author: Matt Turner <mattst88@gmail.com>
Date:   Mon Apr 15 15:00:08 2013 -0700

    i965: Check reg.nr for BRW_ARF_NULL instead of reg.file.
    
    Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>


backtrace from glxgears:
glxgears: brw_eu_emit.c:227: validate_reg: Assertion `vstride == 0' failed.

Program received signal SIGABRT, Aborted.
0x000000365ae35ba5 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:63
63	  return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
(gdb) bt
#0  0x000000365ae35ba5 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:63
#1  0x000000365ae37358 in __GI_abort () at abort.c:90
#2  0x000000365ae2e972 in __assert_fail_base (fmt=0x365af79408 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", 
    assertion=assertion@entry=0x7ffff78a7b49 "vstride == 0", file=file@entry=0x7ffff78a78f8 "brw_eu_emit.c", line=line@entry=227, 
    function=function@entry=0x7ffff78a841e <__PRETTY_FUNCTION__.33548> "validate_reg") at assert.c:92
#3  0x000000365ae2ea22 in __GI___assert_fail (assertion=0x7ffff78a7b49 "vstride == 0", file=0x7ffff78a78f8 "brw_eu_emit.c", line=227, 
    function=0x7ffff78a841e <__PRETTY_FUNCTION__.33548> "validate_reg") at assert.c:101
#4  0x00007ffff780c85d in validate_reg (insn=0x937390, reg=...) at brw_eu_emit.c:227
#5  0x00007ffff780c9c7 in brw_set_src0 (p=0x7fffffffd730, insn=0x937390, reg=...) at brw_eu_emit.c:261
#6  0x00007ffff780f928 in brw_IF (p=0x7fffffffd730, execute_size=0) at brw_eu_emit.c:1113
#7  0x00007ffff77fb5c2 in brw_clip_tri_init_vertices (c=0x7fffffffd730) at brw_clip_tri.c:153
#8  0x00007ffff77fd50d in brw_emit_tri_clip (c=0x7fffffffd730) at brw_clip_tri.c:588
#9  0x00007ffff77f85eb in compile_clip_prog (brw=0x624550, key=0x7fffffffda10) at brw_clip.c:97
#10 0x00007ffff77f8be5 in brw_upload_clip_prog (brw=0x624550) at brw_clip.c:250
#11 0x00007ffff7857a73 in brw_upload_state (brw=0x624550) at brw_state_upload.c:497
#12 0x00007ffff78072fc in brw_try_draw_prims (ctx=0x624550, arrays=0x6861b0, prim=0x7fffffffdbf0, nr_prims=1, ib=0x0, min_index=0, max_index=3)
    at brw_draw.c:501
#13 0x00007ffff780766d in brw_draw_prims (ctx=0x624550, prim=0x7fffffffdbf0, nr_prims=1, ib=0x0, index_bounds_valid=1 '\001', min_index=0, 
    max_index=3, tfb_vertcount=0x0) at brw_draw.c:589
#14 0x00007ffff727c5a3 in vbo_draw_arrays (ctx=0x624550, mode=6, start=0, count=4, numInstances=1, baseInstance=0)
    at ../../../src/mesa/vbo/vbo_exec_array.c:619
#15 0x00007ffff727c67c in vbo_exec_DrawArrays (mode=6, start=0, count=4) at ../../../src/mesa/vbo/vbo_exec_array.c:649
#16 0x00007ffff727e008 in _mesa_DrawArrays (mode=6, first=0, count=4) at ../../../src/mesa/vbo/vbo_exec_array.c:1409
#17 0x00007ffff733c352 in _mesa_meta_glsl_Clear (ctx=0x624550, buffers=18) at ../../../src/mesa/drivers/common/meta.c:2353
#18 0x00007ffff77f8457 in brw_clear (ctx=0x624550, mask=0) at brw_clear.c:257
#19 0x00007ffff712b655 in _mesa_Clear (mask=16640) at ../../../src/mesa/main/clear.c:227
#20 0x00007ffff7dcbb66 in glClear (mask=16640) at ../../../src/mapi/glapi/glapi_mapi_tmp.h:2832
#21 0x00000000004025de in draw ()
#22 0x0000000000401dd9 in main ()

GPU: GM45
Mesa: 34bec4a25165bf5d3f957e26eda7624d325b161c
Kernel: 3.8.7-201.fc18.x86_64
Comment 1 Matt Turner 2013-04-19 04:52:35 UTC
Thanks, I've pushed a revert for now.


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.