mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
radv: add primitives_generated_query to the graphics pipeline key
Different shader variants will be used to not hurt when the features aren't enabled. 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/15639>
This commit is contained in:
parent
dc8cf44f60
commit
11734f935a
2 changed files with 4 additions and 0 deletions
|
|
@ -3430,6 +3430,9 @@ radv_generate_graphics_pipeline_key(const struct radv_graphics_pipeline *pipelin
|
|||
if (device->instance->disable_sinking_load_input_fs)
|
||||
key.disable_sinking_load_input_fs = true;
|
||||
|
||||
if (device->primitives_generated_query)
|
||||
key.primitives_generated_query = true;
|
||||
|
||||
return key;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ struct radv_pipeline_key {
|
|||
uint32_t disable_aniso_single_level : 1;
|
||||
uint32_t disable_sinking_load_input_fs : 1;
|
||||
uint32_t image_2d_view_of_3d : 1;
|
||||
uint32_t primitives_generated_query : 1;
|
||||
|
||||
struct {
|
||||
uint32_t instance_rate_inputs;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue