Mesa (main): anv: tell the hardware about gl_[Clip|Cull]Distance in mesh shaders
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Feb 2 18:36:14 UTC 2022
Module: Mesa
Branch: main
Commit: c95b4ac2eb12042afeb4d0fce5721f246fa92af8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c95b4ac2eb12042afeb4d0fce5721f246fa92af8
Author: Marcin Ślusarz <marcin.slusarz at intel.com>
Date: Thu Dec 9 16:48:03 2021 +0100
anv: tell the hardware about gl_[Clip|Cull]Distance in mesh shaders
Signed-off-by: Marcin Ślusarz <marcin.slusarz at intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13662>
---
src/intel/vulkan/genX_pipeline.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index 184b62ff236..ebfbbf4770d 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -1604,8 +1604,8 @@ emit_3dstate_clip(struct anv_graphics_pipeline *pipeline,
const struct brw_mesh_prog_data *mesh_prog_data = get_mesh_prog_data(pipeline);
anv_batch_emit(&pipeline->base.batch, GENX(3DSTATE_CLIP_MESH), clip_mesh) {
clip_mesh.PrimitiveHeaderEnable = mesh_prog_data->map.per_primitive_header_size_dw > 0;
- /* TODO(mesh): UserClipDistanceClipTestEnableBitmask. */
- /* TODO(mesh): UserClipDistanceCullTestEnableBitmask. */
+ clip_mesh.UserClipDistanceClipTestEnableBitmask = mesh_prog_data->clip_distance_mask;
+ clip_mesh.UserClipDistanceCullTestEnableBitmask = mesh_prog_data->cull_distance_mask;
}
}
#endif
More information about the mesa-commit
mailing list