i965/vs/gen7: Emit code for GLSL ES 3.00 pack/unpack operations (v3)
authorChad Versace <chad.versace@linux.intel.com>
Wed, 9 Jan 2013 19:44:31 +0000 (11:44 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Fri, 25 Jan 2013 05:24:11 +0000 (21:24 -0800)
commit203c12b18feb596999d9512e108408e72dd4ffd3
treed1b724af2104ec11660137475248b945f8b614bb
parent7093558b311b223004845d0a422eb88bed15b418
i965/vs/gen7: Emit code for GLSL ES 3.00 pack/unpack operations (v3)

FIXME: This patch emits VS code that violates documented hardware
restrictions and then relies on undocumented behavior that results from
that violation.  This patch passes all tests, but should be fixed ASAP to
conform to the hardware documentation.

v2: Explain undocumented hardware behavior. Improve comments.
v3: Use ALU1 helper methods F32TO16() and F16TO32(). [for anholt]

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (v1)
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp