mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 16:20:39 +02:00
radv: add radv_pipeline_key::dynamic_patch_control_points
This will be used to compile different tessellation shaders when patch control points is dynamic. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18344>
This commit is contained in:
parent
54bd5851ba
commit
0cea8276bc
2 changed files with 4 additions and 0 deletions
|
|
@ -2773,6 +2773,9 @@ radv_generate_graphics_pipeline_key(const struct radv_graphics_pipeline *pipelin
|
|||
|
||||
key.ps.has_epilog = !!pipeline->ps_epilog;
|
||||
|
||||
key.dynamic_patch_control_points =
|
||||
!!(pipeline->dynamic_states & RADV_DYNAMIC_PATCH_CONTROL_POINTS);
|
||||
|
||||
return key;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ struct radv_pipeline_key {
|
|||
uint32_t disable_sinking_load_input_fs : 1;
|
||||
uint32_t image_2d_view_of_3d : 1;
|
||||
uint32_t primitives_generated_query : 1;
|
||||
uint32_t dynamic_patch_control_points : 1;
|
||||
|
||||
struct {
|
||||
uint32_t instance_rate_inputs;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue