diff options
author | Jesse Natalie <jenatali@microsoft.com> | 2024-04-01 16:07:17 -0700 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-04-04 20:29:11 +0000 |
commit | c1e7d0598d280434cb448c591561313a8fb0e4f5 (patch) | |
tree | c0c785238c47fef2f8a7e66a419a140c4664e962 | |
parent | c8d435373e3be99806b523e4bf51d56d2e87e634 (diff) |
d3d12: Add primitive ID sysval to input bitmask (for GS in)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28535>
-rw-r--r-- | src/gallium/drivers/d3d12/d3d12_compiler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/d3d12/d3d12_compiler.cpp b/src/gallium/drivers/d3d12/d3d12_compiler.cpp index 6b6b2f9e4eb..5758fc048fc 100644 --- a/src/gallium/drivers/d3d12/d3d12_compiler.cpp +++ b/src/gallium/drivers/d3d12/d3d12_compiler.cpp @@ -1020,7 +1020,8 @@ d3d12_fill_shader_key(struct d3d12_selection_context *sel_ctx, } } key->next_varying_inputs = next->current->nir->info.inputs_read; - + if (BITSET_TEST(next->current->nir->info.system_values_read, SYSTEM_VALUE_PRIMITIVE_ID)) + key->next_varying_inputs |= VARYING_SLOT_PRIMITIVE_ID; } if (stage == PIPE_SHADER_GEOMETRY || |