Bug 35248 - Texture lookup in vertex shader broken
Summary: Texture lookup in vertex shader broken
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-12 05:12 UTC by s3734770
Modified: 2011-03-31 03:50 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Patch: also regard vs resources (1.15 KB, patch)
2011-03-12 10:10 UTC, s3734770
Details | Splinter Review

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.