Bug 87694 - [SNB] Crash in brw_begin_transform_feedback
Summary: [SNB] Crash in brw_begin_transform_feedback
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Ian Romanick
QA Contact: Intel 3D Bugs Mailing List
Depends on:
Reported: 2014-12-25 05:24 UTC by nmcveity
Modified: 2015-01-19 06:01 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:

Makefile for demo program (288 bytes, text/plain)
2014-12-25 05:24 UTC, nmcveity
Demo program (5.14 KB, text/plain)
2014-12-25 05:25 UTC, nmcveity
Details about crash from GDB (4.09 KB, text/plain)
2014-12-25 05:25 UTC, nmcveity

Description nmcveity 2014-12-25 05:24:49 UTC
Created attachment 111311 [details]
Makefile for demo program

I have found a crash in the i965 gen6 code path on trunk.

The crash occurs if you attempt to perform transform feedback after 
you have rendered using a geometry shader.

The work around is to draw something without a geometry shader
before attempting to do any transform feedback.

The attached files contains a simplified demonstration program
using glut.

 > make

Will hopefully generate 'will_crash' and 'workaround' executables.

I ran 'will_crash' in gdb with debug versions of mesa trunk @b3057f8
installed on my system. I have attached the backtrace and other info
gleaned from gdb. They are in the attached CRASH.txt file.
Comment 1 nmcveity 2014-12-25 05:25:19 UTC
Created attachment 111312 [details]
Demo program
Comment 2 nmcveity 2014-12-25 05:25:41 UTC
Created attachment 111313 [details]
Details about crash from GDB
Comment 3 Iago Toral 2015-01-05 07:09:02 UTC
This seems to be a gen6 specific crash, updated summary to reflect that. I'll look into it later this week when I am back in the office where I have gen6 hardware available.
Comment 4 Iago Toral 2015-01-07 09:11:19 UTC
Sent a patch for review to the mailing list:
Comment 5 Iago Toral 2015-01-16 13:20:55 UTC
Fixed in master with:

6367ca8b41 i965/gen6: Fix crash with VS+TF after rendering with GS

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.