Bug 65723 - Xonotic glsl 1.30 broken due to lack of derivatives support in radeonsi
Summary: Xonotic glsl 1.30 broken due to lack of derivatives support in radeonsi
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/radeonsi (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: highest blocker
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-13 17:17 UTC by Rafael Castillo
Modified: 2013-07-11 04:39 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Rafael Castillo 2013-06-13 17:17:26 UTC
since glsl was enable by default xonotic 0.6 have heavy render issues 

my entire stack is git and my card is an 7770.

you can download from here the entire apitrace file[apitrace 3.0]

https://docs.google.com/uc?export=download&confirm=2qiw&id=0B29SlCylOCovb2NpVTQ4LVdyZW8

thanks in advance
Comment 1 Rafael Castillo 2013-06-13 17:18:13 UTC
i mean glsl 1.30 was enable by default
Comment 2 Alex Deucher 2013-06-13 17:56:45 UTC
Please attach your xorg log and dmesg output.
Comment 3 Rafael Castillo 2013-06-13 17:59:35 UTC
i can but they are clean of errors, even running xonotic from console its clean which is why i made an apitrace.

ill post them later today when get home anyway

thx for your time
Comment 4 Michel Dänzer 2013-06-14 13:08:28 UTC
Looks like Xonotic uses derivatives with GLSL 1.30, which radeonsi doesn't implement yet, so it falls back to dummy shaders:

warning: failed to translate tgsi opcode DDX to LLVM
Failed to translate shader from TGSI to LLVM
EE ../../../../../src/gallium/drivers/radeonsi/si_state.c:1951 si_shader_select - Failed to build shader variant (type=1) -22


Maybe you can work around this by disabling / lowering some settings in Xonotic, or you could try the WIP patches from http://lists.freedesktop.org/archives/mesa-dev/2013-June/040406.html and http://lists.freedesktop.org/archives/mesa-dev/2013-June/040412.html .
Comment 5 Rafael Castillo 2013-06-14 18:53:11 UTC
many thanks for your answer, i will try those patches and report back
Comment 6 Michel Dänzer 2013-07-10 16:44:17 UTC
Fixed in Mesa Git master (requires current LLVM 3.4 snapshot):

commit a06ee5a09e7072aab29abac7a3afe7b04b6d6ee6
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Jun 19 18:14:01 2013 +0200

    radeonsi: Handle TGSI_OPCODE_DDX/Y using local memory
Comment 7 Rafael Castillo 2013-07-11 04:39:02 UTC
tested and working, many thanks for your hard work


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.