[Mesa-dev] [Bug 29199] Using negation as an argument to a shader function sometimes negates twice
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Jul 21 11:41:33 PDT 2010
https://bugs.freedesktop.org/show_bug.cgi?id=29199
--- Comment #1 from Neil Roberts <neil at linux.intel.com> 2010-07-21 11:41:33 PDT ---
Created an attachment (id=37276)
View: https://bugs.freedesktop.org/attachment.cgi?id=37276
Review: https://bugs.freedesktop.org/review?bug=29199&attachment=37276
Add a shader which does a negation as one of the arguments to dot
This is basically doing:
vec3 a_vec;
vec3 b_vec;
/* some random calculations */
float result = dot(-a_vec, b_vec);
But for some reason it currently gets compiled as if it was:
vec3 a_vec;
vec3 b_vec;
/* some random calculations */
float result = dot(--a_vec, b_vec);
Ie, the negation gets done twice.
--
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