Bug 17023

Summary: [i965] glean/api2 triggers assertion failure
Product: Mesa Reporter: Shuang He <shuang.he>
Component: Drivers/DRI/i965Assignee: Brian Paul <brian.paul>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: medium CC: dri-devel
Version: 7.1   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: xorg log
xorg conf

Description Shuang He 2008-08-07 00:24:43 UTC
System Environment:
--------------------------

--Platform: Q965


--2D driver:
commit f91134795b545c8baebf218975b261c76a0e5873

--3D driver:
commit c20a1736566d301f38cc1271284b1fde9adb2741

--Xserver:
commit 26d31ad1c7f4c550d73419ecf76912d844186b30

--Drm
commit 4585787bd1a1d782b9e7c06095f98d09165b8c23

--Kernel:
2.6.25


Bug detailed description:
-------------------------
glean case api2 failed with assertion failure, bisect shows following commit brings in this issue:

	ffbc66bf614c5a2b9bc3a68a6fa7d027405a55b9 is first bad commit
	commit ffbc66bf614c5a2b9bc3a68a6fa7d027405a55b9
	Author: Brian Paul <brian.paul@tungstengraphics.com>
	Date:   Mon Jul 21 13:58:50 2008 -0600
	
		mesa: assorted glsl uniform/attribute fixes
	
		Fix incorrect uniform/attribute size query results.
		Add missing error checking for glUniform, glUniformMatrix params
		Fix an array size/allocation error.

assertion failure with this commit is:
   glean: shader/shader_api.c:541: _mesa_bind_attrib_location: Assertion `0'failed
assertion failure with git tip is:
   glean: brw_vs_emit.c:613: get_reg: Assertion `c->regs[file][index].nr != 0\' failed

backtrace:
(gdb) bt
#0  0xffffe424 in __kernel_vsyscall ()
#1  0x00bfd690 in raise () from /lib/libc.so.6
#2  0x00bfef91 in abort () from /lib/libc.so.6
#3  0x00bf693e in __assert_fail () from /lib/libc.so.6
#4  0xb7b67501 in _mesa_bind_attrib_location (ctx=0x810c568, program=9,
    index=6, name=0x80b87af "generic") at shader/shader_api.c:541
#5  0xb7be9d9c in _mesa_BindAttribLocationARB (program=9, index=6,
    name=0x80b87af "generic") at main/shaders.c:66
#6  0x08058cb5 in GLEAN::API2Test::testShaderAttribs (this=0x80ef460)
    at tapi2.cpp:758
#7  0x08057fd1 in GLEAN::API2Test::runSubTests (this=0x80ef460, r=@0x81363b8)
    at tapi2.cpp:990
#8  0x0805a39a in GLEAN::API2Test::runOne (this=0x80ef460, r=@0x81363b8,
    w=@0xbfd1d314) at tapi2.cpp:1007
#9  0x0805ad85 in GLEAN::BaseTest<GLEAN::MultiTestResult>::run (
    this=0x80ef460, environment=@0xbfd1d3a0) at tbase.h:290
#10 0x080547eb in main (argc=6, argv=0xbfd1d4e4) at main.cpp:128





Current result:
----------------
glean case api2 run abort


Expected result:
----------------
glean case api2 should pass
Comment 1 Shuang He 2008-08-07 00:26:38 UTC
Created attachment 18169 [details]
xorg log
Comment 2 Shuang He 2008-08-07 00:27:42 UTC
Created attachment 18170 [details]
xorg conf
Comment 3 Shuang He 2008-08-14 18:25:44 UTC
this issue has gone now.
Comment 4 Shuang He 2008-08-14 18:27:35 UTC
verified

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.