Bug 49086

Summary: nouveau — Gallium 0.4 on NVA5 — 2.1 Mesa 8.0.2 crashes Firefox Nightly
Product: Mesa Reporter: Alex Mayorga Adame <alex_mayorga>
Component: Drivers/DRI/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: e0425955, josef, marcin.slusarz
Version: 8.0   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Backtrace
Patch for issue.

Description Alex Mayorga Adame 2012-04-23 11:26:07 UTC
https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/conformance-suites/1.0.1/conformance/glsl/functions/glsl-function-normalize.html crashes Firefox Nightly on click with this configuration:

Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:14.0) Gecko/20120423 Firefox/14.0a1 ID:20120423034053

Adapter Description nouveau — Gallium 0.4 on NVA5
Vendor ID nouveau
Device ID Gallium 0.4 on NVA5
Driver Version 2.1 Mesa 8.0.2
WebGL Renderer nouveau — Gallium 0.4 on NVA5 — 2.1 Mesa 8.0.2
GPU Accelerated Windows 0
AzureBackend skia

I was directed to report this crash to this bug tracker at http://blog.mozilla.org/bjacob/2012/04/21/webgl-1-0-1-conformance-testing-part-2/comment-page-1/#comment-3082
Comment 1 Josef Vitu 2012-06-09 02:27:17 UTC
Created attachment 62841 [details]
Backtrace

Backtrace for a similar configuration:

Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/16.0 Firefox/16.0a1 ID:20120608081921

Adapter Description   nouveau -- Gallium 0.4 on NV96
Vendor ID   nouveau
Device ID   Gallium 0.4 on NV96
Driver Version   2.1 Mesa 8.0.2
WebGL Renderer   nouveau -- Gallium 0.4 on NV96 -- 2.1 Mesa 8.0.2
GPU Accelerated Windows   0
AzureBackend   skia
Comment 2 Marcin Slusarz 2012-06-09 05:15:07 UTC
This is:
assert(i->opcode == NV_OP_RCP && !src0->mod);
in nv50_pc_emit.c/emit_flop

CC'ing Christoph
Comment 3 Christoph Bumiller 2012-06-09 06:36:24 UTC
Created attachment 62847 [details]
Patch for issue.

This should get rid of the assertion failure (obviously) and handle the case correctly.

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.