mesa/src
Kenneth Graunke 73b01e2711 i965: Fix clear code for ignoring colormask for XRGB formats on Gen9+.
In commit cda886a485, Neil made us stop
advertising RGBX formats on Gen9+, as the hardware apparently no longer
has working fast clear support for those formats.  Instead, we just
fall back to RGBA formats, and use SCS to override alpha to 1.0.

This is fine, but had one unintended side effect: it made us fall back
to slow clears when the color mask disables alpha.  Normally, we ignore
the color mask for non-existent channels.  This includes alpha for XRGB
formats as writing garbage to the X channel is harmless.  But, now that
we use RGBA, we think there's a real alpha channel, and can't do the
optimization.

To hack around this, check if _BaseFormat is GL_RGB and ignore alpha.

Improves WebGL Aquarium performance on Skylake GT3e by about 50%
by letting it use repclears instead of slow clears.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
2016-04-21 12:01:49 -07:00
..
compiler glsl: Relax GLSL 1.10 float suffix error to a warning. 2016-04-21 10:33:08 -07:00
egl egl/x11: authenticate before doing chipset id ioctls 2016-04-21 14:40:44 +01:00
gallium radeonsi: Add config parameter to si_shader_apply_scratch_relocs. 2016-04-21 19:36:19 +02:00
gbm gbm: add GBM_FORMAT_XBGR8888 format support 2016-04-21 14:45:56 +01:00
getopt
glx scons: Build dri_common_interop.c. 2016-04-20 12:41:24 +01:00
gtest
hgl
intel i965: Generalize wm_key->compute_sample_id to wm_key->multisample_fbo. 2016-04-20 16:18:47 -07:00
loader loader: add a libdrm case for loader_get_device_name_for_fd 2016-04-21 14:41:41 +01:00
mapi mesa: expose EXT_base_instance in ES3 contexts 2016-04-03 20:40:55 -04:00
mesa i965: Fix clear code for ignoring colormask for XRGB formats on Gen9+. 2016-04-21 12:01:49 -07:00
util util: Fix warning of invalid return value 2016-04-15 15:00:58 -07:00
Makefile.am configure: Add initial support for enabling Vulkan drivers 2016-04-14 15:15:00 -07:00
SConscript glsl: move to compiler/ 2016-01-26 16:08:33 +00:00