mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
radv: Add CULL_PRIMITIVE to special output mask.
It isn't compiled to an output param, so can be safely ignored from the param assignment. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17244>
This commit is contained in:
parent
7144d52d59
commit
5d2a243dde
1 changed files with 3 additions and 1 deletions
|
|
@ -500,8 +500,10 @@ radv_nir_shader_info_pass(struct radv_device *device, const struct nir_shader *n
|
|||
|
||||
struct radv_vs_output_info *outinfo = get_vs_output_info(nir, info);
|
||||
if (outinfo) {
|
||||
/* These are not compiled into neither output param nor position exports. */
|
||||
uint64_t special_mask = BITFIELD64_BIT(VARYING_SLOT_PRIMITIVE_COUNT) |
|
||||
BITFIELD64_BIT(VARYING_SLOT_PRIMITIVE_INDICES);
|
||||
BITFIELD64_BIT(VARYING_SLOT_PRIMITIVE_INDICES) |
|
||||
BITFIELD64_BIT(VARYING_SLOT_CULL_PRIMITIVE);
|
||||
uint64_t per_prim_mask =
|
||||
nir->info.outputs_written & nir->info.per_primitive_outputs & ~special_mask;
|
||||
uint64_t per_vtx_mask =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue