If GL_LIGHT_MODEL_LOCAL_VIEWER is set to TRUE and specular light exists, the light color calculation is incorect. Please run attached test case and refer to Light color Equation in OpenGL spec. With i915 driver or using software rendering, the test case will pass.
Created attachment 8991 [details] test case
Created attachment 9032 [details] [review] re-calculating the half According to the gl spec, the half is different from other when local view is enabled and the light is a directional source.
The patch works for us. Please remove the content in patch: diff --git a/configs/default b/configs/default....
Could anyone review this fix? If no problem, I will check in it.
Looks good to me. Should probably be fixed in t_vp_build.c (used by other drivers) too (though I have to admit last time I did some changes there I missed the i965 driver because I didn't realize it has the same code).
fixed. commit 61ec23cc63a040a2edf1bc466917e85362514c89 thanks for Roland's review and comments
Mass version move, cvs -> git
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.