Bug 101708

Summary: 'shader translation failed: -4' with dolphin-emu ubershaders
Product: Mesa Reporter: orbea
Component: Drivers/DRI/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED MOVED QA Contact: Nouveau Project <nouveau>
Severity: normal    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Apitrace
shader causing RA failure
shader failing to compile

Description orbea 2017-07-06 13:40:21 UTC
Created attachment 132481 [details]
Apitrace

When using the new ubershaders branch with dolphin-emu and nouveau it will print this error: 

nvc0_program_translate:610 - shader translation failed: -4

I have attached an apitrace showing the issue.

Note:

The exclusive ubershaders perform poorly with nouveau while the hybrid shaders perform well. Also a later commit in the ubershaders branch will crash with nouveau as described here.

https://github.com/dolphin-emu/dolphin/pull/5702#issuecomment-313301072
Comment 1 Ilia Mirkin 2017-07-10 23:59:51 UTC
Created attachment 132602 [details]
shader causing RA failure
Comment 2 Ilia Mirkin 2017-07-11 00:34:16 UTC
Created attachment 132603 [details]
shader failing to compile

Er, nevermind that. That crash is caused by a bug in a local WIP patch I have (which is trying to fix spilling logic a bit).

Actually the shader that fails to compile is a simple-seeming geometry shader.
Comment 3 Ilia Mirkin 2017-07-11 01:02:28 UTC
Sent a patch to make this work on GK110+ (embarrassing bug that caused us to use fewer registers than were available).

However that doesn't fix it on fermi/kepler1.
Comment 4 GitLab Migration User 2019-09-18 20:45:38 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1137.

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.