mesa/src
Roland Scheidegger e57b98bad3 llvmpipe: fix blending with SRC_ALPHA_SATURATE with some formats without alpha
We were fixing up the blend factor to ZERO, however this only works correctly
with fixed point render buffers where the input values are clamped to 0/1
(because src_alpha_saturate is min(As, 1-Ad) so can be negative with unclamped
inputs). Haven't seen any failure anywhere due to that with fixed point SNORM
buffers (which clamp inputs to -1/1) but it should apply there as well (snorm
blending is rare, even opengl 4.3 doesn't require snorm rendertargets at all,
d3d10 requires them but they are not blendable).
Doesn't look like piglit hits this though (some internal testing hits the
float case at least). (With legacy OpenGL we could theoretically still use the
fixup to zero if the fragment color clamp is enabled, but we can't detect that
easily since we don't support native clamping hence it gets baked into the
shader.)

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Zack Rusin <zackr@vmware.com>
2013-07-18 19:03:35 +02:00
..
egl wayland: Handle global_remove event as well 2013-06-18 17:45:19 -04:00
gallium llvmpipe: fix blending with SRC_ALPHA_SATURATE with some formats without alpha 2013-07-18 19:03:35 +02:00
gbm gbm: Remember to init format on gbm_dri_bo_create. 2013-02-07 20:00:52 -05:00
getopt
glsl glsl: Remove comma at end of enumerator list. 2013-07-17 20:57:54 -07:00
glx glx: return True/False instead of GL_TRUE/GL_FALSE 2013-06-27 07:48:19 -06:00
gtest gtest: Build it only for 'make check'. 2013-01-13 12:38:44 +01:00
mapi glapi: Do not use backtrace on OpenBSD. 2013-07-16 09:00:38 -07:00
mesa mesa: Remove commas at end of enumerator lists. 2013-07-17 20:57:53 -07:00
Makefile.am build: Remove GALLIUM_DIRS 2013-04-15 12:04:26 -07:00
SConscript Remove libGLU 2012-08-31 10:58:15 -07:00