mesa: Don't use memcpy() in _mesa_texstore() for float depth texture data
authorAnuj Phogat <anuj.phogat@gmail.com>
Mon, 21 Jul 2014 23:58:42 +0000 (16:58 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Tue, 22 Jul 2014 01:33:29 +0000 (18:33 -0700)
commit9548ba6e7bb8e631f6ef6236f7425725239742fe
treed1923b0e38b357b187552b6839bb1944e8fdc162
parent29af97f2804442e7952b98f8cea8e8ff740d196e
mesa: Don't use memcpy() in _mesa_texstore() for float depth texture data

because float depth texture data needs clamping to [0.0, 1.0]. Let the
_mesa_texstore() fallback to slower path.

Fixes Khronos GLES3 CTS tests:
shadow_execution_vert
shadow_execution_frag

V2: Move the check to _mesa_texstore_can_use_memcpy() function.
    Add check for floating point data types.

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/texstore.c