From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 55256] New: r600g R600_LLVM=1 bad rendering (light blue instead of grey) Date: Sun, 23 Sep 2012 20:59:45 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0079265932==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 972399E7DB for ; Sun, 23 Sep 2012 13:59:45 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0079265932== Content-Type: multipart/alternative; boundary="1348433985.d20F30.15189"; charset="us-ascii" --1348433985.d20F30.15189 Date: Sun, 23 Sep 2012 20:59:45 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=55256 Priority: medium Bug ID: 55256 Assignee: dri-devel@lists.freedesktop.org Summary: r600g R600_LLVM=1 bad rendering (light blue instead of grey) Severity: normal Classification: Unclassified OS: Linux (All) Reporter: edwin+mesa@etorok.net Hardware: Other Status: NEW Version: git Component: Drivers/DRI/R600 Product: Mesa Created attachment 67592 --> https://bugs.freedesktop.org/attachment.cgi?id=67592&action=edit apitrace Attached is an apitrace, and screenshots. Bad behaviour with --enable-r600-llvm-compiler: OpenGL vendor string: X.Org OpenGL renderer string: Gallium 0.4 on AMD RV730 OpenGL version string: 3.0 Mesa 9.1-devel (git-fb40f88) OpenGL shading language version string: 1.30 If you look at the 'bad.png' screenshot you'll see that the 4th column is light blue. It should be grey. With R600_LLVM=0 the good behaviour is seen: good.png. See the apitrace for the full shader, here is the relevant bit: else if (gl_FragCoord.x < 640) color = vec4(1.0f, 1.0f, 1.0f, 1.0f);//white [...] vec4 color0, color1, color2, color3; if (gl_FragCoord.y < 200) { color0 = color1 = color2 = color;//75% [...] } else if (xmod < 55 || xmod >= 105 || ymod < 75 || ymod >= 125) { // real color // TODO: buggy on r600g with LLVM? gl_FragColor = (color0 + color1 + color2 + color3) / 4.0f; P.S.: the shader is not optimal, most of the branches could be moved out of it, I haven't tried to minimize the testcase though. -- You are receiving this mail because: You are the assignee for the bug. --1348433985.d20F30.15189 Date: Sun, 23 Sep 2012 20:59:45 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Priority medium
Bug ID 55256
Assignee dri-devel@lists.freedesktop.org
Summary r600g R600_LLVM=1 bad rendering (light blue instead of grey)
Severity normal
Classification Unclassified
OS Linux (All)
Reporter edwin+mesa@etorok.net
Hardware Other
Status NEW
Version git
Component Drivers/DRI/R600
Product Mesa

Created attachment 67592 [details]
apitrace

Attached is an apitrace, and screenshots.

Bad behaviour with --enable-r600-llvm-compiler:
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD RV730
OpenGL version string: 3.0 Mesa 9.1-devel (git-fb40f88)
OpenGL shading language version string: 1.30

If you look at the 'bad.png' screenshot you'll see that the 4th column is light
blue. It should be grey.
With R600_LLVM=0 the good behaviour is seen: good.png.

See the apitrace for the full shader, here is the relevant bit:
    else if (gl_FragCoord.x < 640)
        color = vec4(1.0f, 1.0f, 1.0f, 1.0f);//white
    [...]
        vec4 color0, color1, color2, color3;
        if (gl_FragCoord.y < 200) {
            color0 = color1 = color2 = color;//75%
   [...]
        } else if (xmod < 55 || xmod >= 105 ||
                   ymod < 75 || ymod >= 125) {
            // real color
            // TODO: buggy on r600g with LLVM?
            gl_FragColor = (color0 + color1 + color2 + color3) / 4.0f;

P.S.: the shader is not optimal, most of the branches could be moved out of it,
I haven't tried to minimize the testcase though.


You are receiving this mail because:
  • You are the assignee for the bug.
--1348433985.d20F30.15189-- --===============0079265932== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0079265932==--