mesa/src
Matias N. Goldberg f728435e1f st/mesa: Fix grabbing the wrong variant if glDrawPixels is called
By design pixel shaders can have up to 3 variants:
* The standard one.
* glDrawPixels variant.
* glBitmap variant.
However "shader_has_one_variant" ignores this fact, and therefore
st_update_fp would select the wrong variant if glDrawPixels or glBitmap
was ever called.

This patch fixes the problem. If the standard variant has been created,
calling glDrawPixels or glBitmap will append the variant to the second
entry of the linked list, so that st_update_fp still selects the right
one if shader_has_one_variant is set.

If the standard variant hasn't been created yet and glDrawPixel/Bitmap
has been called, st_update_fp will will see this and take the slow path
instead. The standard variant will then be added at the front of the
linked list, so that the next time the fast path is taken.

Blender in particular is hit by this bug.

v2: Marek - cosmetic changes

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=101596

Signed-off-by: Marek Olšák <marek.olsak@amd.com>
2017-07-08 01:44:51 +02:00
..
amd ac/nir: Fix ordering of parameters for image atomic cmpswap intrinsics 2017-07-07 00:57:25 +02:00
broadcom vc4: automake: include vc4_cl_dump.h in 2017-07-04 09:37:19 +02:00
compiler glsl: check if any of the named builtins are available first 2017-07-05 20:05:53 -04:00
egl egl: android: Fix potential use of unitialized variable 2017-07-05 18:49:22 +01:00
gallium svga: adjust line subpixel position for HWv8 2017-07-07 12:04:17 -06:00
gbm gbm: add XBGR8888 support for dumb buffers 2017-06-30 08:44:19 +01:00
getopt
glx egl: turn one more boolean int into a bool 2017-06-21 21:42:14 +01:00
gtest gtest: Update to 1.8.0. 2017-01-20 11:40:52 -08:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel Revert "intel/isl: Only create a CCS buffer if the image supports rendering" 2017-07-07 14:24:58 -07:00
loader egl: turn one more boolean int into a bool 2017-06-21 21:42:14 +01:00
mapi Update Khronos-supplied headers 2017-06-30 15:29:50 +02:00
mesa st/mesa: Fix grabbing the wrong variant if glDrawPixels is called 2017-07-08 01:44:51 +02:00
util util/disk_cache: fix a comment 2017-07-03 13:57:01 +02:00
vulkan Android: vulkan: fix build error due to extra ) 2017-06-08 07:26:04 -05:00
Makefile.am build systems: move git_sha1_gen.sh to bin/ 2017-07-06 22:59:39 +01:00
SConscript build systems: move git_sha1_gen.sh to bin/ 2017-07-06 22:59:39 +01:00