mesa/src
Oded Gabbay 2fa0daba95 llvmpipe: use vpkswss when dst is signed
This patch fixes a bug when building a pack instruction.

For POWER (altivec), in case the destination is signed and the
src width is 32, we need to use vpkswss. The original code used vpkuwus,
which emits an unsigned result.

This fixes the following piglit tests on ppc64le:
- spec@arb_color_buffer_float@gl_rgba8-drawpixels
- shaders@glsl-fs-fogscale

I've also corrected some coding style issues in the function.

v2: Returned else statements to vmware style

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
(cherry picked from commit 679a654a77)
2016-01-22 14:46:14 +00:00
..
egl egl/wayland: Ignore rects from SwapBuffersWithDamage 2015-12-03 18:43:12 +00:00
gallium llvmpipe: use vpkswss when dst is signed 2016-01-22 14:46:14 +00:00
gbm gbm.h: Add a missing stddef.h include for size_t. 2015-11-05 14:05:20 +00:00
getopt
glsl glsl: assign varying locations to tess shaders when doing SSO 2015-12-18 12:26:26 +00:00
glx glx: Don't hard-code the name "libGL.so.1" in driOpenDriver (v3) 2015-10-07 14:49:07 +01:00
gtest mesa: Enable subdir-objects globally. 2015-06-26 12:55:25 +01:00
hgl glapi/hgl: Drop extern "C" as it was added to glapi 2015-05-13 15:26:29 -04:00
loader loader: use HAVE_LIBDRM instead of ! __NOT_HAVE_DRM_H 2015-07-22 16:35:25 +01:00
mapi mapi: Make _glapi_get_stub work with "gl" or "mgl" prefix. 2015-10-07 14:48:41 +01:00
mesa i965: Fix crash when calling glViewport with no surface bound 2016-01-15 16:49:31 +02:00
util ralloc: Fix ralloc_adopt() to the old context's last child's parent. 2016-01-14 19:45:06 +02:00
Makefile.am automake: rework the EGL build 2015-07-22 16:35:27 +01:00
SConscript scons: rework the EGL build 2015-07-22 16:35:27 +01:00