mesa/src
Fabian Bieler 77148639d3 glsl: Fix gl_NormalScale.
GLSL shaders can access the normal scale factor with the built-in
gl_NormalScale.  Mesa's modelspace lighting optimization uses a different
normal scale factor than defined in the spec.  We have to take care not
to use this factor for gl_NormalScale.

Mesa already defines two seperate states: state.normalScale and
state.internal.normalScale.  The first is used by the glsl compiler
while the later is used by the fixed function T&L pipeline.  Previously
the only difference was some component swizzling.  With this commit
state.normalScale always uses the normal scale factor for eyespace
lighting.

Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit c3ee464d7a)
2017-12-14 22:56:46 +00:00
..
amd radv: Don't advertise VK_EXT_debug_report. 2017-12-14 22:56:46 +00:00
broadcom broadcom/vc5: Remove unused v3d_compiler.c 2017-11-13 17:17:16 +00:00
compiler glsl: Match order of gl_LightSourceParameters elements. 2017-12-14 22:56:46 +00:00
egl egl/wayland: Add a fallback when fourcc query isn't supported 2017-11-17 19:24:29 +00:00
gallium gallium/aux: include nr_samples in util_resource_size() computation 2017-12-14 22:56:46 +00:00
gbm meson: build libEGL 2017-10-20 16:46:48 -07:00
getopt
glx glx/dri3: Remove unused deviceName variable 2017-12-14 22:56:46 +00:00
gtest meson: convert gtest to an internal dependency 2017-10-03 10:02:08 -07:00
hgl
intel anv: Check if memfd_create is already defined. 2017-12-01 19:02:47 +00:00
loader loader/dri3: Improve dri3 thread-safety 2017-11-17 19:24:29 +00:00
mapi gl_table.py: add extern C guard for the generated glapitable.h 2017-11-27 19:26:16 +00:00
mesa glsl: Fix gl_NormalScale. 2017-12-14 22:56:46 +00:00
util util/disk_cache: Remove unneeded free() on always null string 2017-12-14 22:56:46 +00:00
vulkan meson: move wayland_drm_protocol generation to wayland-drm 2017-10-20 16:46:48 -07:00
git_sha1.h.in meson: Build i965 and dri stack 2017-10-09 13:42:44 -07:00
Makefile.am automake: include git_sha1.h.in in release tarball 2017-11-13 17:17:15 +00:00
meson.build meson: build libEGL 2017-10-20 16:46:48 -07:00
SConscript scons: use python3-compatible print() 2017-09-25 11:57:12 +01:00