mesa/src/broadcom
Iago Toral Quiroga 5c42d6c62f v3dv: implement VK_EXT_shader_demote_to_helper_invocation
Demoting means that we don't execute any writes to memory but
otherwise the invocation continues to execute. Particularly,
subgroup operations and derivatives must work.

Our implementation of discard does exactly this by using
setmsf to prevent writes for the affected invocations, the
only difference for us is that with discard/terminate we
want to be more careful with emitting quad loads for tmu
operations, since the invocations are not supposed to be
running any more and load offsets may not be valid, but with
demote the invocations are not terminated and thus we should
emit memory reads for them to ensure quad operations and
derivatives from invocations that have not been demoted still
work.

Since we use the sample mask to implement demotes we can't tell
whether a particular helper invocation was originally such
(gl_HelperInvocation in GLSL) or was later demoted
(OpIsHelperInvocationEXT added with SPV_EXT_demote_to_helper_invocation),
so we use nir_lower_is_helper_invocation to take care of this.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26949>
2024-01-09 13:22:37 +00:00
..
ci ci/v3d: add support for rpi5 2024-01-05 16:10:50 +00:00
cle broadcom/compiler: remove include of gallium headers from meson.build 2023-12-12 10:03:11 +00:00
clif broadcom: only support v42 and v71 2023-11-02 11:59:08 +01:00
common v3d/v3dv: move V3D_CSD definitions to a separate file 2023-12-14 16:43:13 +00:00
compiler v3dv: implement VK_EXT_shader_demote_to_helper_invocation 2024-01-09 13:22:37 +00:00
drm-shim broadcom/compiler: remove include of gallium headers from meson.build 2023-12-12 10:03:11 +00:00
qpu broadcom/compiler: remove include of gallium headers from meson.build 2023-12-12 10:03:11 +00:00
simulator v3dv: enable CPU jobs in the simulator 2023-12-14 16:43:14 +00:00
vulkan v3dv: implement VK_EXT_shader_demote_to_helper_invocation 2024-01-09 13:22:37 +00:00
.editorconfig
meson.build broadcom/compiler: remove include of gallium headers from meson.build 2023-12-12 10:03:11 +00:00