mesa/src
Pavel Ondračka ce33f82f83
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
r300: disable clip-discard watermark for triangles
Commit 0d4aa5f55f introduced the watermark to optimize the guardband
state changes and always computed new_distance as MAX2(distance,
watermark).

That is correct for point/line paths where distance > 0, but it keeps a
non-zero discard distance alive when the next draw sets distance = 0
(triangles). This leaks wide point/line clip-discard state into later
triangle draws and can clip away large parts of geometry (as observed in
Sauerbraten). Only apply the watermark when distance > 0 and reset it to
zero otherwise so triangle draws disable clip-discard as intended.

Fixes: 0d4aa5f55f ("r300: pop-free clipping")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14959
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40223>
2026-03-09 10:18:51 +00:00
..
amd radv: dump the PS epilog in the GPU hang report 2026-03-09 09:53:27 +00:00
android_stub android_stub: fix missing prototypes issues 2025-12-02 20:03:02 +00:00
asahi agx: use common code vote lowering 2026-02-25 17:29:29 +00:00
broadcom v3dv: parse V3DV_ENABLE_PIPELINE_CACHE with parse_debug_string 2026-03-06 10:41:00 +00:00
c11 c11/threads: fix build on c23 2025-11-10 07:01:50 +10:00
compiler nir: Fix divergence of Intel URB input/output handle intrinsics 2026-03-09 02:38:59 +00:00
drm-shim drm-shim: handle DRM_CAP_ADDFB2_MODIFIERS 2025-11-24 12:34:08 +00:00
egl egl/dri: Check that xshm can be attached 2026-03-06 01:18:53 +00:00
etnaviv etnaviv/ci: fix expectation 2026-03-07 23:35:55 +00:00
freedreno freedreno: Rename afuc to QRisc 2026-03-08 22:32:39 +00:00
gallium r300: disable clip-discard watermark for triangles 2026-03-09 10:18:51 +00:00
gbm gbm: Make documentation for gbm_bo_map more explicit 2025-12-29 10:05:38 +00:00
getopt
gfxstream gfxstream: Fix StagingInfo destruction ordering 2026-03-04 23:45:40 +00:00
glx glx: Check that xshm can be attached 2026-03-06 01:18:53 +00:00
gtest
imagination pco: Add hwinfo check for features in sampler code 2026-03-05 15:33:10 +00:00
imgui imgui: Silence build warnings for imgui 2025-09-16 06:16:19 +00:00
intel intel/blorp: drop unused BLORP_BATCH_COMPUTE_ENGINE flag 2026-03-06 20:42:05 +00:00
kosmickrisp kk,llvmpipe,nouveau: remove lower_vector_cmp from scalar backends 2026-03-04 19:50:27 +00:00
loader util,loader: silence asprintf() unused result warnings 2026-02-07 10:07:22 +00:00
mesa glsl: add workaround for MDK2 HD 2026-03-05 13:09:29 +00:00
microsoft dozen: Resolve Seg Fault in dzn_physical_device_create 2026-02-17 15:19:37 +00:00
nouveau nvk: Expose VK_KHR_depth_clamp_zero_one 2026-03-08 17:16:26 -04:00
panfrost panvk/ci: document new crashes on bifrost 2026-03-07 05:01:45 +00:00
poly panvk/csf: implement VK_EXT_primitives_generated_query primitive restart 2026-01-21 09:03:34 +00:00
tool intel: Include available counter descriptions in the perfetto counter spec 2026-03-06 08:47:16 +00:00
util driconf: force_vk_vendor on No Man's Sky + NVK 2026-03-07 15:55:08 +00:00
virtio venus/ci: update expectations 2026-03-05 18:29:29 +00:00
vulkan vulkan: Store a few more fields in vk_sampler 2026-03-06 21:26:41 +00:00
x11 x11: Add helper util to check for xshm support 2026-03-06 01:18:53 +00:00
.clang-format util: Add sparse bitset data structure 2025-11-06 21:34:33 +00:00
meson.build gallium/dril: Don't use gbm if there is no gbm configured 2026-02-17 08:24:02 +00:00