Bug 35248

Summary: Texture lookup in vertex shader broken
Product: Mesa Reporter: s3734770
Component: Drivers/Gallium/r600Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: joolsa
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch: also regard vs resources

Description s3734770 2011-03-12 05:12:10 UTC
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)
Comment 1 s3734770 2011-03-12 09:14:52 UTC
An additional info: the texture to fetch has float texels and is a luminance texture.
Comment 2 s3734770 2011-03-12 10:10:24 UTC
Created attachment 44399 [details] [review]
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
Comment 3 Henri Verbeet 2011-03-12 10:36:02 UTC
The r600_shader_from_tgsi() change is wrong, but I've pushed the rest.
Comment 4 s3734770 2011-03-31 03:50:50 UTC
oh, we forgot to mark it "fixed".

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.