From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 30122] New: r600 scrambled render when using 2d texture sample
for 1d texture co-ord in fragment shader
Date: Fri, 10 Sep 2010 11:40:26 -0700 (PDT)
Message-ID:
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Return-path:
Received: from annarchy.freedesktop.org (annarchy.freedesktop.org
[131.252.210.176])
by gabe.freedesktop.org (Postfix) with ESMTP id 654B59E7D0
for ;
Fri, 10 Sep 2010 11:40:27 -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
https://bugs.freedesktop.org/show_bug.cgi?id=30122
Summary: r600 scrambled render when using 2d texture sample for
1d texture co-ord in fragment shader
Product: Mesa
Version: git
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r600
AssignedTo: dri-devel@lists.freedesktop.org
ReportedBy: thomas.jones@utoronto.ca
Created an attachment (id=38612)
--> (https://bugs.freedesktop.org/attachment.cgi?id=38612)
small program that triggers the bug
Using a shader like this results in a strange scrambled rendering:
uniform sampler2D src;
uniform sampler1D pal;
void main() {
gl_FragColor = texture1D(pal, texture2D(src, gl_TexCoord[0].xy).x);
}
it looks like in addition to just being messed up it also gets the texture
co-ordinates wrong (I'm rending with GL_QUADS, the two triangles that make up
the quad seem to be interpolating differently across the middle)
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.