Bug 81683

Summary: [r600g] graphic glitches in Skyrim - failed to build shader
Product: Mesa Reporter: 640bugs
Component: Drivers/Gallium/r600Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium    
Version: 10.2   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 85596    
Attachments: Screenshot of graphic problems in Skyrim
Screenshot of skyrim with patch
increase GPR limit up to 128 in r600 driver

Description 640bugs 2014-07-23 18:41:08 UTC
Created attachment 103360 [details]
Screenshot of graphic problems in Skyrim

When playing Skyrim with Mesa 10.2.4, I get graphic glitches at the place of the thieves guild (see screenshot, the floor isn't visible). I am playing with an AMD Radeon 685, Linux 3.15.5-2-ARCH.

I noticed these messages in the console.

EE r600_shader.c:2188 r600_shader_from_tgsi - GPR limit exceeded - shader requires 127 registers
EE r600_shader.c:157 r600_pipe_shader_create - translation from TGSI failed !
EE r600_state_common.c:750 r600_shader_select - Failed to build shader variant (type=1) -12

Is this bug known? Any ideas or suggestion, how i can help to solve this issue?
Comment 1 640bugs 2014-07-23 18:59:45 UTC
The graphic card is an AMD Radeon HD 6850. Sorry for the typo.
Comment 2 640bugs 2014-07-24 18:39:17 UTC
Created attachment 103403 [details]
Screenshot of skyrim with patch

I manually increased the GPR limit up to 128, which solves the problem as you can see in the screenshot. Of course I am not sure, if this is a valid patch and doesnt cause other problems.
I also attached the patch.
Comment 3 640bugs 2014-07-24 18:40:40 UTC
Created attachment 103405 [details] [review]
increase GPR limit up to 128 in r600 driver
Comment 4 GitLab Migration User 2019-09-18 19:16:43 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/517.

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.