Bug 49731

Summary: wine 1.5.2 and 3Dmark2001se on nv43 hits assertion in simplify_cmp: Assertion `inst->dst.index < 4096' failed
Product: Mesa Reporter: Andrew Randrianasulu <randrik>
Component: Drivers/DRI/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED NOTOURBUG QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: dmesg
glxinfo -l
X log

Description Andrew Randrianasulu 2012-05-10 05:24:57 UTC
software:

ddx:
commit 581564466c47ab0435ecca3cf4d82c03e1b30259
Author: Francisco Jerez <currojerez@riseup.net>
Date:   Tue May 8 14:02:44 2012 +0200

    dri2: Don't try to page-flip pixmaps (fdo bug 49351).

libdrm:
commit 5288729823ee1c243023758c35fbe8e3a70ccf9c
Author: Marcin Slusarz <marcin.slusarz@gmail.com>
Date:   Tue May 1 23:24:45 2012 +0200

    nouveau: fix channel closing

kernel:
nouveau tree
commit 6de446e248e4e0bbb040abc1e76c9876750aac78
Author: Ben Skeggs <bskeggs@redhat.com>
Date:   Thu May 10 19:03:11 2012 +1000

    drm/nv04-nv40: fix regression from a previous commit (SQUASH)

mesa:
commit 788fd04dacb9eb1e32010050c57cd2f49779311b
Author: Tom Stellard <thomas.stellard@amd.com>
Date:   Wed May 9 11:50:02 2012 -0400

    radeon/llvm: Remove AMDGPUConstants.pm


wine-1.5.2

X server  1.10.6

hw:
01:00.0 VGA compatible controller: NVIDIA Corporation NV43 [GeForce 6600 GT] (rev a2) (prog-if 00 [VGA controller])
        Subsystem: XFX Pine Group Inc. GeForce 6600 GT AGP
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 32 (1250ns min, 250ns max)
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
        Region 1: Memory at e0000000 (32-bit, prefetchable) [size=256M]
        Region 2: Memory at fc000000 (32-bit, non-prefetchable) [size=16M]
        Expansion ROM at fe8e0000 [disabled] [size=128K]
        Capabilities: [60] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [44] AGP version 3.0
                Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW+ AGP3- Rate=x1,x2,x4
                Command: RQ=32 ArqSz=0 Cal=0 SBA+ AGP+ GART64- 64bit- FW+ Rate=x4
        Kernel driver in use: nouveau
        Kernel modules: nouveau

If I let 3DMark2001se  run, it  will hit assertion (in Game 3, Lobby, low  detail):

  state_tracker/st_glsl_to_tgsi.cpp:3006:simplify_cmp: Assertion `inst->dst.index < 4096' failed.
wine: Unhandled page fault on read access to 0x00000008 at address 0xb750db8b (thread 0009), starting debugger...
Unhandled exception: page fault on read access to 0x00000008 in 32-bit code (0xb750db8b).
Comment 1 Andrew Randrianasulu 2012-05-10 05:26:42 UTC
Created attachment 61360 [details]
dmesg
Comment 2 Andrew Randrianasulu 2012-05-10 05:27:22 UTC
Created attachment 61361 [details]
glxinfo -l
Comment 3 Andrew Randrianasulu 2012-05-10 05:28:02 UTC
Created attachment 61363 [details]
X log
Comment 4 Emil Velikov 2012-11-01 17:41:10 UTC
This is a bug in the old nvfx driver. Update to mesa 9.0

Marking as Resolved/Wontfix
Comment 5 Emil Velikov 2012-11-01 17:46:38 UTC
You are using nv30, by bad
Comment 6 Ilia Mirkin 2013-08-20 22:29:02 UTC
From a quick look at the assertion, it's in the "generic" part of mesa (converting glsl -> tgsi). Please re-test with a fresh version of mesa, and if the issue persists, please reopen/file under something not-nouveau-related. (Not sure what categories they use in the tracker.) They'll probably want a dump of the shader that causes the problem.

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.