Bug 56620

Summary: r600g: ETQW renders garbage with --enable-r600-llvm-compiler
Product: Mesa Reporter: Laurent carlier <lordheavym>
Component: Drivers/Gallium/r600Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: maxijac, spamjunkeater, vljn
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: furmark.exe output

Description Laurent carlier 2012-10-31 16:34:50 UTC
Created attachment 69356 [details]
furmark.exe output

etqw renders garbage with --enable-r600-llvm. Bisecting gives me:

5ab82e0ccf84855e9311ebfc58d1b57b437ed991 is the first bad commit
commit 5ab82e0ccf84855e9311ebfc58d1b57b437ed991
Author: Vincent Lejeune <vljn@ovi.com>
Date:   Fri Oct 19 15:49:06 2012 +0200

    r600g: tgsi-to-llvm emits right input intrinsics
    
    Reviewed-by: Tom Stellard <thomas.stellard at amd.com>

:040000 040000 e678b643c10733ff7ef7163f3e21aee0a16ebb6e 4d10bf29f966beb56e12c385529284c53db1f950 M      src
Comment 1 Laurent carlier 2012-10-31 16:36:37 UTC
oups, with --enable-r600-llvm-compiler of course
Comment 2 Laurent carlier 2012-10-31 17:04:44 UTC
OpenGL renderer string: Gallium 0.4 on AMD BARTS
OpenGL version string: 3.0 Mesa 9.1-devel (git-5ab82e0)
OpenGL shading language version string: 1.30

with radeon HD6870
Comment 3 vincent 2012-10-31 17:59:41 UTC
Do you use llvm 3.2-svn from here ? :
http://cgit.freedesktop.org/~tstellar/llvm/

If so, can you give the output of either etqw or furmark with the R600_DUMP_SHADERS=1 envvar set, before and after the commit please ?
Comment 4 Alex Deucher 2012-10-31 18:32:13 UTC
*** Bug 56592 has been marked as a duplicate of this bug. ***
Comment 5 Laurent carlier 2012-11-01 08:54:20 UTC
[lordh@archMain ~]$ /usr/bin/llvm-config32 --version
3.1
Comment 6 Laurent carlier 2012-11-04 07:52:52 UTC
Fixed with tstellar repo (http://cgit.freedesktop.org/~tstellar/llvm/) and AMDGPU experimental target enabled.

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.