mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
anv: remove redundant code calculating dynamic states mask
pipeline->dynamic_states is already set by anv_graphics_pipeline_init
since 231651fd89.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16773>
This commit is contained in:
parent
092d03a90e
commit
34b5a717c0
2 changed files with 2 additions and 19 deletions
|
|
@ -1421,15 +1421,7 @@ anv_pipeline_compile_graphics(struct anv_graphics_pipeline *pipeline,
|
|||
const struct brw_compiler *compiler = pipeline->base.device->physical->compiler;
|
||||
struct anv_pipeline_stage stages[ANV_GRAPHICS_SHADER_STAGE_COUNT] = {};
|
||||
|
||||
/* Information on which states are considered dynamic. */
|
||||
const VkPipelineDynamicStateCreateInfo *dyn_info =
|
||||
info->pDynamicState;
|
||||
uint32_t dynamic_states = 0;
|
||||
if (dyn_info) {
|
||||
for (unsigned i = 0; i < dyn_info->dynamicStateCount; i++)
|
||||
dynamic_states |=
|
||||
anv_cmd_dirty_bit_for_vk_dynamic_state(dyn_info->pDynamicStates[i]);
|
||||
}
|
||||
uint32_t dynamic_states = pipeline->dynamic_states;
|
||||
|
||||
VkResult result;
|
||||
for (uint32_t i = 0; i < info->stageCount; i++) {
|
||||
|
|
|
|||
|
|
@ -2713,16 +2713,7 @@ genX(graphics_pipeline_create)(
|
|||
return result;
|
||||
}
|
||||
|
||||
/* Information on which states are considered dynamic. */
|
||||
const VkPipelineDynamicStateCreateInfo *dyn_info =
|
||||
pCreateInfo->pDynamicState;
|
||||
uint32_t dynamic_states = 0;
|
||||
if (dyn_info) {
|
||||
for (unsigned i = 0; i < dyn_info->dynamicStateCount; i++)
|
||||
dynamic_states |=
|
||||
anv_cmd_dirty_bit_for_vk_dynamic_state(dyn_info->pDynamicStates[i]);
|
||||
}
|
||||
|
||||
uint32_t dynamic_states = pipeline->dynamic_states;
|
||||
|
||||
/* If rasterization is not enabled, various CreateInfo structs must be
|
||||
* ignored.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue