Bug 13299 - Mesa 7.0.1 implementation error: i915_program_error: Exceeded max ALU instructions
Mesa 7.0.1 implementation error: i915_program_error: Exceeded max ALU instruc...
Status: RESOLVED NOTABUG
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i915
unspecified
Other All
: medium normal
Assigned To: Zou Nan hai
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-11-19 04:01 UTC by Tomasz Torcz
Modified: 2008-03-04 22:28 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
my xorg.conf (4.56 KB, application/octet-stream)
2007-12-04 09:19 UTC, Tomasz Torcz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Torcz 2007-11-19 04:01:25 UTC
There is sample program in this blog post
http://www.mdk.org.pl/2007/11/17/gl-colorspace-conversions
(Scroll Down to Source Code).
I'm running Ubuntu Gutsy on Intel 945 with Compiz Fusion. When I tried to run mentioned sample program, X got killed. After restarting X and login in, I can no longer run this program:

(second run)% ./gl-video 
Mesa 7.0.1 implementation error: i915_program_error: Exceeded max ALU instructions
Please report at bugzilla.freedesktop.org
DRM_I830_CMDBUFFER: -22

in dmesg I see:
[308463.688000] [drm:drm_lock_free] *ERROR* 3 freed heavyweight lock held by 2
[308463.688000] [drm:i915_irq_emit] *ERROR* i915_irq_emit called without lock held
[308532.852000] [drm:i915_cmdbuffer] *ERROR* i915_dispatch_cmdbuffer failed

There is nothing suspicious in Xorg.0.log{,old}.

Hardware is thinkpad z61t with 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)

Kernel is Ubuntu Gutsy 2.6.22-14-generic.
Intel driver is 2:2.1.1-0ubuntu9
Mesa version 7.0.1-1ubuntu3
Xserver 2:1.3.0.0.dfsg-12ubuntu8
Compiz is 1:0.6.0+git20071008-0ubuntu1.1
Comment 1 Michael Fu 2007-12-03 22:05:22 UTC
would you please attach:

1) x.org log ( even though it looks not suspicious )
2) xorg.conf
3) full dmesg log

thanks.
Comment 2 Tomasz Torcz 2007-12-04 09:19:32 UTC
Created attachment 12931 [details]
my xorg.conf

I'm attaching one of files you requested. As for others, I don't have Xorg log and dmesg from situation. Are files from working situation interesting or do I have to repeat crash?

NB, if you look into comments in URL above, you will see that MDK provided another version of shader program, one that do not crash on Intel. So there are two versions now, crashing and non crashing. Maybe it will help to fix this bug.
Comment 3 Zou Nan hai 2008-03-04 22:28:49 UTC
Hi, Tormasz
    This is a hardware limit that there are most arithmetic instructions in one pixel shader on i915. So driver can do nothing about it.