Skip to contentSkip to conversation

New: r600 scrambled render when using 2d texture sample for 1d texture co-ord in fragment shader

Bug 30122 [email protected] 1 participant 7 messages Sep 10, 2010 – Sep 12, 2012

lore
Share & tools
lore
#0 lore raw

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: [email protected]
ReportedBy: [email protected]

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)

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#1 lore raw

[Bug 30122] r600 scrambled render when using 2d texture sample for 1d texture co-ord in fragment shader

https://bugs.freedesktop.org/show_bug.cgi?id=30122

--- Comment #1 from Thomas Jones <[email protected]> 2010-09-10 11:43:09 PDT --- Created an attachment (id=38613)
--> (https://bugs.freedesktop.org/attachment.cgi?id=38613)
Screenshot showing the brokeness

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#2 lore raw

[Bug 30122] r600 scrambled render when using 2d texture sample for 1d texture co-ord in fragment shader

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30122

--- Comment #2 from Thomas Jones <[email protected]> 2010-09-10 11:47:20 PDT --- Created an attachment (id=38614)
--> (https://bugs.freedesktop.org/attachment.cgi?id=38614)
The expected rendering

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#3 lore raw

[Bug 30122] r600 scrambled render when using 2d texture sample for 1d texture co-ord in fragment shader

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30122

--- Comment #3 from Thomas Jones <[email protected]> 2010-09-10 11:51:09 PDT --- Also noticed, much the same happens with r600 classic too.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#4 lore raw

[Bug 30122] r600 scrambled render when using 2d texture sample for 1d texture co-ord in fragment shader

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30122

--- Comment #4 from Pierre-Eric Pelloux-Prayer <[email protected]> 2011-06-15 02:04:40 PDT --- Created an attachment (id=47987)
--> (https://bugs.freedesktop.org/attachment.cgi?id=47987)
r600c incorrect rendering

Tested with HD4850 + mesa from git :
* r600g rendering is correct
* r600c rendering is still wrong (see attached image)

Could you confirm it is fixed for you as well with r600g ?

If it's the case, maybe this bug should be assigned to r600c ?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#5 lore raw

[Bug 30122] r600 scrambled render when using 2d texture sample for 1d texture co-ord in fragment shader

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30122

Thomas Jones <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Component|Drivers/Gallium/r600 |Drivers/DRI/R600

--- Comment #5 from Thomas Jones <[email protected]> 2011-06-15 08:36:29 PDT --- (In reply to comment #4)

Quoted 1 line

Created an attachment (id=47987)

--> (https://bugs.freedesktop.org/attachment.cgi?id=47987)

Quoted 9 lines

r600c incorrect rendering

Tested with HD4850 + mesa from git :
* r600g rendering is correct
* r600c rendering is still wrong (see attached image)

Could you confirm it is fixed for you as well with r600g ?

If it's the case, maybe this bug should be assigned to r600c ?

Indeed you are correct, it does seem to be fixed on r600c in git, any idea what commit did it? It would probably be useful to point it out so whoever tries to fix r600c can see it.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#6 lore raw

[Bug 30122] r600 scrambled render when using 2d texture sample for 1d texture co-ord in fragment shader

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=30122

Andreas Boll <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from Andreas Boll <[email protected]> 2012-09-12 15:31:45 UTC --- (In reply to comment #4)

Quoted 10 lines

Created attachment 47987 [details]
r600c incorrect rendering

Tested with HD4850 + mesa from git :
* r600g rendering is correct
* r600c rendering is still wrong (see attached image)

Could you confirm it is fixed for you as well with r600g ?

If it's the case, maybe this bug should be assigned to r600c ?

Note: classic r600 driver has been abandoned.

Closing.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.