Bug 101708 - 'shader translation failed: -4' with dolphin-emu ubershaders
Summary: 'shader translation failed: -4' with dolphin-emu ubershaders
Status: RESOLVED MOVED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/nouveau (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Nouveau Project
QA Contact: Nouveau Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-06 13:40 UTC by orbea
Modified: 2019-09-18 20:45 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Apitrace (3.28 MB, application/x-xz)
2017-07-06 13:40 UTC, orbea
Details
shader causing RA failure (145.09 KB, text/plain)
2017-07-10 23:59 UTC, Ilia Mirkin
Details
shader failing to compile (9.93 KB, text/plain)
2017-07-11 00:34 UTC, Ilia Mirkin
Details

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.