mesa/src/panfrost
Lars-Ivar Hesselberg Simonsen f5dab1b77e panfrost: Fix near/far depth clip
Near/far depth clip was implemented by setting the low/high_depth_clamp
to -/+INFINITY, which is invalid on Mali.

This commit removes the modification of the depth clamp values and
enables depth clipping by setting the depth_cull_enable state in the ZS
descriptor for v9+ (the equivalent pre-v9 RSD state is already set
correctly) and setting the primitive cull flags correctly for both.

Finally, it disables PIPE_CAP_DEPTH_CLIP_DISABLE_SEPARATE for v9+, as
both plane clips are controlled by a single value.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11506
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31041>
2024-09-12 20:04:58 +00:00
..
ci panfrost: Fix near/far depth clip 2024-09-12 20:04:58 +00:00
compiler panfrost: implement image2dms support for valhall 2024-08-23 16:57:58 +00:00
drm-shim build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
ds build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
include panfrost: implement a driver-specific max-miplevel 2024-04-18 15:04:57 +00:00
lib pan/genxml: Add pan_pack_nodefaults() 2024-09-12 20:04:58 +00:00
midgard panfrost: Add b2i16 conversion to table 2024-08-23 16:57:58 +00:00
perf build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
shared format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
tools build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
util panfrost: drop leftover definition after pan_nir_lower_64bit_intrin removal 2024-09-05 11:02:29 +00:00
vulkan panvk/csf: Fix inverted address/destination register in CmdSetEvent2() 2024-09-12 19:29:08 +00:00
.clang-format pan/genxml: Add pan_pack_nodefaults() 2024-09-12 20:04:58 +00:00
meson.build build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00