Skip to contentSkip to conversation

New: Texture lookup in vertex shader broken

Bug 35248 [email protected] 1 participant 5 messages Mar 12, 2011 – Mar 31, 2011

lore
Share & tools
lore
#0 lore raw

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

Summary: Texture lookup in vertex shader broken
Product: Mesa
Version: git
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r600
AssignedTo: [email protected]
ReportedBy: [email protected]

I ran the demo mesa-demos/src/glsl/vert-tex and fetch instructions only return memory garbage.

The same problem appears when running games via wine where hardware skinned models are not shown (better: vertices are spread around the whole coordinate system)

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 35248] Texture lookup in vertex shader broken

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

--- Comment #1 from [email protected] 2011-03-12 09:14:52 PST --- An additional info: the texture to fetch has float texels and is a luminance texture.

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 35248] Texture lookup in vertex shader broken

In reply to [email protected]

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

--- Comment #2 from [email protected] 2011-03-12 10:10:24 PST --- Created an attachment (id=44399)
View: https://bugs.freedesktop.org/attachment.cgi?id=44399
Review: https://bugs.freedesktop.org/review?bug=35248&attachment=44399

Patch: also regard vs resources

I found the problem:
077c448d184799e0d9ec962013ec784c6a5c1807 did not pay attention at vs The fix also adds the resource offset to vs

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 35248] Texture lookup in vertex shader broken

In reply to [email protected]

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

--- Comment #3 from Henri Verbeet <[email protected]> 2011-03-12 10:36:02 PST --- The r600_shader_from_tgsi() change is wrong, but I've pushed the rest.

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 35248] Texture lookup in vertex shader broken

In reply to [email protected]

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

[email protected] changed:

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

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from [email protected] 2011-03-31 03:50:50 PDT --- oh, we forgot to mark it "fixed".

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.