[Mesa-dev] [Bug 32000] New: [glsl] Texture value get's corrupt as soon as it appears in if statement
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Nov 30 05:44:54 PST 2010
https://bugs.freedesktop.org/show_bug.cgi?id=32000
Summary: [glsl] Texture value get's corrupt as soon as it
appears in if statement
Product: Mesa
Version: 7.9
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Mesa core
AssignedTo: mesa-dev at lists.freedesktop.org
ReportedBy: manisandro at gmail.com
Created an attachment (id=40668)
--> (https://bugs.freedesktop.org/attachment.cgi?id=40668)
Shadow Mapping demo
Attached is a simple shadow mapping demo.
Problem:
In the fragment shader, as soon as the distanceFromLight variable or any
variable which had distanceFromLight as (part of) it's rvalue is placed inside
_any_ if statement, it's value becomes corrupt. distanceFromLight is the value
read via texture2D from a GL_DEPTH_ATTACHMENT texture.
Details:
See FragmentShader.glsl, where 5 main observations are made.
Notes:
- The program works fine with the nvidia proprietary driver
- glxinfo:
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Mobile Intel® GM45 Express Chipset GEM
20100330 DEVELOPMENT
OpenGL version string: 2.1 Mesa 7.9
OpenGL shading language version string: 1.20
- driver: xorg-x11-drv-intel-2.12.0-6.fc14.1.x86_64
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the mesa-dev
mailing list