mesa/src
Emma Anholt 58f5605124 freedreno: Handle full blit discards by invalidating the resource.
The previous implementation had several issues:

- It wasn't checking all the conditions necessary for "this blit updates
  the whole surface", like PIPE_MASK_Z but not S on a depth/stencil
  buffer.
- It would reset the previous batchbuffer, even if that batch had side
  effects on other buffers.
- The layering was painful to follow and made any recursion extra
  dangerous.

Now, we use a more conservative test (enough for the resource shadowing
case) and just invalidate the buffer up front, which should have the right
logic for discarding drawing to that resource.

I found I had to add fd_bc_flush_writer() to the end of fd_blitter_blit()
-- a flush was happening at fb state restore time when the discard flag
was set, and losing that flush breaks
dEQP-GLES31.functional.stencil_texturing.format.stencil_index8_cube.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11455>
2021-06-21 20:48:21 +00:00
..
amd radv: allow VK_FORMAT_R8G8_SRGB sampling 2021-06-21 18:17:09 +00:00
android_stub egl/android: refactor to use the legit vndk/window.h header 2021-06-09 21:07:54 +00:00
asahi nir, nir/algebraic: add byte/word insertion instructions 2021-06-08 08:57:42 +00:00
broadcom nir/propagate_invariant: add invariant_prim option 2021-06-21 15:13:05 +00:00
compiler nir,docs: Add docs for NIR ALU instructions 2021-06-21 16:46:59 +00:00
drm-shim drm-shim: fix compile with glibc >= 2.33 2021-04-20 05:49:29 +00:00
egl egl: fix in expected type 2021-06-19 19:34:20 +00:00
etnaviv etnaviv: tell the truth if alpha-test is supported 2021-04-08 19:25:26 +00:00
freedreno freedreno: Handle full blit discards by invalidating the resource. 2021-06-21 20:48:21 +00:00
gallium freedreno: Handle full blit discards by invalidating the resource. 2021-06-21 20:48:21 +00:00
gbm gbm: list to stderr all the missing extension 2021-05-24 16:17:47 +00:00
getopt scons: Remove. 2021-03-20 10:38:55 +00:00
glx glx: create DRI screen for display GPU incase of prime 2021-06-03 09:12:32 +00:00
gtest
hgl hgl: Major refactor and cleanup 2021-01-09 20:51:35 -06:00
imgui
intel intel/gen125.xml: Drop GPGPU_WALKER 2021-06-21 19:40:14 +00:00
loader crocus: initial gallium driver for Intel gfx 4-7 2021-06-14 06:34:05 +10:00
mapi glthread: change when glFlush flushes asynchronously 2021-06-17 02:24:22 +00:00
mesa util: Move the 4x4 matrix inverse function to u_math 2021-06-18 22:16:27 +00:00
microsoft nir: Move workgroup_size and workgroup_variable_size into common shader_info 2021-06-08 09:23:55 -07:00
nouveau nouveau: add drm-shim support 2021-01-11 22:45:01 +00:00
panfrost nir,panfrost: Suffix fsat_signed and fclamp_pos with _mali 2021-06-21 09:03:34 -05:00
tool pps: Intel pps driver 2021-05-18 14:28:48 +00:00
util util/fossilize_db: Only lock the db file, not the index. 2021-06-21 10:05:12 +00:00
virtio venus: remove workarounds for multi-planar format interop 2021-06-16 20:31:32 +00:00
vulkan vulkan/wsi/wayland: simplify wl_surface version check 2021-06-21 20:01:28 +00:00
meson.build freedreno: Add freedreno pps driver 2021-05-10 15:34:07 +00:00