mesa/src
Jason Ekstrand 0ae9ce0f29 i965/clear: Quantize the depth clear value based on the format
In f9fd976e8a we changed the clear value to be stored as an
isl_color_value.  This had the side-effect same clear value check is now
happening directly between the f32[0] field of the isl_color_value and
ctx->Depth.Clear.  This isn't what we want for two reasons.  One is that
the comparison happens in floating point even for Z16 and Z24 formats.
Worse than that, ctx->Depth.Clear is a double so, even for 32-bit float
formats, we were comparing as doubles and not floats.  This means that
the test basically always fails for anything other than 0.0f and 1.0f.
This caused a slight performance regression in Lightsmark 2008 because
it was using a depth clear value of 0.999 which can't be stored in a
32-bit float so we were doing unneeded resolves.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Bugzilla: https://bugs.freedesktop.org/101678
Cc: "17.2" <mesa-stable@lists.freedesktop.org>
2017-08-21 22:18:53 -07:00
..
amd Android: Fix LLVM duplicated symbols linking for N and M 2017-08-21 10:46:21 -05:00
broadcom broadcom/genxml: Add V3D 3.3 packet definitions. 2017-08-18 12:54:13 -07:00
compiler glsl: pass UseSTD430AsDefaultPacking to where it will be used 2017-08-22 11:29:27 +10:00
egl egl: Fix inclusion of egl.h+mesa_glinterop.h 2017-08-21 14:45:44 -07:00
gallium clover/device: Calculate CL_DEVICE_MEM_BASE_ADDR_ALIGN in device 2017-08-21 20:21:52 -05:00
gbm loader: rework xmlconfig dependency 2017-08-04 23:54:52 +01:00
getopt
glx glxcmds: Fix a typo in the __APPLE__ codepath 2017-08-17 15:13:33 -07:00
gtest gtest: Update to 1.8.0. 2017-01-20 11:40:52 -08:00
hgl
intel i965: Mark functions static 2017-08-21 14:45:44 -07:00
loader dri3: Move up fourcc utility function 2017-08-21 12:55:54 +01:00
mapi glapi: per the extension spec, the EXT-suffixed function should be used 2017-08-07 20:32:37 -04:00
mesa i965/clear: Quantize the depth clear value based on the format 2017-08-21 22:18:53 -07:00
util anv: Move a comment that got left behind in the u_vector refactor. 2017-08-18 11:56:58 -07:00
vulkan vulkan: import 1.0.59 headers and xml. 2017-08-22 07:00:50 +10:00
Makefile.am build: Convert git_sha1_gen script to Python (part2). 2017-08-01 16:33:55 +01:00
SConscript build: Convert git_sha1_gen script to Python. 2017-08-01 15:24:39 +01:00