Bug 55510

Summary: Incorrect rendering with unigine tropics
Product: Mesa Reporter: Bruno Jacquet (Xaapyks) <maxijac>
Component: Drivers/Gallium/r600Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: output of tropics
screenshot bad rendering
rendering

Description Bruno Jacquet (Xaapyks) 2012-10-01 19:57:51 UTC
Created attachment 67942 [details]
output of tropics

Tropics has bad rendering, screenshot and output will be posted.

using mesa git 8d9778589f4b3a174e884338adb0fe1bdeca5eb7 and ddx e8cb0b721e6ea251f85c799ca0563bfa59a2d37c linux 3.5.
Comment 1 Bruno Jacquet (Xaapyks) 2012-10-01 19:58:32 UTC
Created attachment 67943 [details]
screenshot bad rendering
Comment 2 Bruno Jacquet (Xaapyks) 2012-10-01 20:00:33 UTC
Created attachment 67944 [details]
rendering

reattaching because it failed
Comment 3 Alex Deucher 2012-10-01 20:47:49 UTC
Make sure you install libtxc_dxtn and you may need to build mesa with the --enable-texture-float configure option.
Comment 4 Bruno Jacquet (Xaapyks) 2012-10-02 19:05:59 UTC
I had no x86 libtxc_dxtn, so I compiled it for x86 but no change, shaders still seem to fail at compiling.

I tried installing lib32-libtxc_dxtn from AUR (I use Arch) and still bad rendering. How can I test libtxc is installed properly for x86 ?

And I do have the --enable-texture-float configure option.
Comment 5 Bruno Jacquet (Xaapyks) 2013-06-01 08:31:33 UTC
Still happening with 32 bit mesa 9.1.3 and libtxc_dxtn 1.0.1.
Output is the same, shaders fail to compile
Comment 6 Vadim Girlin 2013-06-01 09:02:08 UTC
Unigine has some known problems, so you need to set the following environment variable to activate workarounds in mesa:

  force_glsl_extensions_warn=true

This should be enough for Tropics and Sanctuary IIRC, Heaven additionally requires

  MESA_EXTENSION_OVERRIDE=-GL_ARB_shader_bit_encoding
Comment 7 Bruno Jacquet (Xaapyks) 2013-06-01 09:18:53 UTC
Thanks, exporting force_glsl_extensions_warn=true does fix the rendering of tropics!
Should I close the report or is it considered a temporary workaround?

As a side note, exporting MESA_EXTENSION_OVERRIDE=-GL_ARB_shader_bit_encoding does not change anything for me in heaven 3.0. It has always been rendering correctly, so the override does not fix anything, or maybe I never stumbled upon the missing parts I am supposed to see...
Comment 8 Andy Furniss 2013-06-01 10:28:34 UTC
(In reply to comment #7)
> Thanks, exporting force_glsl_extensions_warn=true does fix the rendering of
> tropics!
> Should I close the report or is it considered a temporary workaround?
> 
> As a side note, exporting
> MESA_EXTENSION_OVERRIDE=-GL_ARB_shader_bit_encoding does not change anything
> for me in heaven 3.0. It has always been rendering correctly, so the
> override does not fix anything, or maybe I never stumbled upon the missing
> parts I am supposed to see...

Maybe it depends on h/w and or settings (defaults I suppose may be set according to what heaven detects - untested).

I just tried on my HD4890 and without that I don't get any lighting/nice effects so it looks very plain/matt.
Comment 9 GitLab Migration User 2019-09-18 19:01:06 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/421.

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.