mesa/src
Rob Clark 0e1bdd0057 freedreno/a6xx: Invalidate LRZ on blend+depthwrite
Writing depth with blend enabled means we need to invalidate LRZ,
because the written depth value could mean that a later draw with
depth enabled (where we would otherwise write LRZ) could have
fragments which don't pass the depth test due to this draw.  For
example, consider this sequence of draws, with depth mode GREATER:

  draw A:
    z=0.1, fragments pass
  draw B:
    z=0.4, fragments pass
    blend enabled (LRZ write disabled)
    depth write enabled
  draw C:
    z=0.2, fragments don't pass
    blend disabled
    depth write enabled

Normally looking at the state in draw C, we'd assume we could
enable LRZ write.  But this would cause early-z/lrz to discard
fragments from draw A which should be visible due to draw B.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8065
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20708>
2023-01-20 16:18:03 +00:00
..
amd radv: Make NGG query emission a dirty flag. 2023-01-20 14:31:45 +00:00
android_stub
asahi asahi: Handle sampler->compare_mode 2023-01-13 19:43:14 +00:00
broadcom ci/piglit: 2023-01-19 uprev 2023-01-19 23:46:44 +00:00
c11 c11: Remove _MTX_INITIALIZER_NP for windows 2022-11-09 04:38:28 +00:00
compiler meson: replace has_exe_wrapper with can_run_host_binaries 2023-01-19 16:29:03 +00:00
drm-shim drm-shim: Use hide_drm_device_path() to hide other drm devices 2022-12-30 15:51:11 -08:00
egl meson: use the same workaround for setting 'lib' on windows 2023-01-19 23:06:07 +00:00
etnaviv tree-wide: Use __func__ instead of __FUNCTION__ in non-gallium code 2022-11-22 06:53:46 +00:00
freedreno tu/kgsl: do not use kgsl_command_object::offset 2023-01-20 10:50:20 +00:00
gallium freedreno/a6xx: Invalidate LRZ on blend+depthwrite 2023-01-20 16:18:03 +00:00
gbm gbm/backend: fix gbm compile without dri 2023-01-13 22:29:29 +00:00
getopt
glx glx: Harmonize glXCreateGLXPixmap with glXCreatePixmap 2023-01-13 19:59:26 +00:00
gtest
hgl
imagination meson: remove version checks for < 0.59 2023-01-19 23:06:07 +00:00
imgui
intel hasvk: add restrictions for 3DSTATE_RASTER::AntiAliasingEnable 2023-01-20 12:50:04 +00:00
loader loader/dri3: Overhaul draw->cur_num_back handling 2023-01-10 10:44:17 +00:00
mapi meson: use the same workaround for setting 'lib' on windows 2023-01-19 23:06:07 +00:00
mesa mesa/st: drop unused param 2023-01-19 10:10:45 +00:00
microsoft dzn: Rework meta blit VS 2023-01-20 00:35:59 +00:00
nouveau nir: Eliminate nir_op_i2b 2022-12-14 06:23:21 +00:00
panfrost meson: remove version checks for < 0.59 2023-01-19 23:06:07 +00:00
tool tool/pps: Fix 32-bit build issue with format string 2023-01-18 19:27:41 +00:00
util util: Add #ifdefs for Xbox GDK support. 2023-01-19 03:25:55 +00:00
virtio meson: remove version checks for < 0.59 2023-01-19 23:06:07 +00:00
vulkan vulkan/format: add a 10-bit video format 2023-01-18 06:36:27 +00:00
meson.build wgl: Add support for Xbox GDK. 2023-01-19 03:25:55 +00:00