radv: track whether baseinstance is used on the pipeline struct

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8788>
This commit is contained in:
Mike Blumenkrantz 2021-02-09 09:14:07 -05:00 committed by Marge Bot
parent b1b867033e
commit 0a8b091922
2 changed files with 2 additions and 0 deletions

View file

@ -5444,6 +5444,7 @@ radv_pipeline_init_shader_stages_state(struct radv_pipeline *pipeline)
pipeline->graphics.vtx_base_sgpr += loc->sgpr_idx * 4;
pipeline->graphics.vtx_emit_num = loc->num_sgprs;
pipeline->graphics.uses_drawid = radv_get_shader(pipeline, MESA_SHADER_VERTEX)->info.vs.needs_draw_id;
pipeline->graphics.uses_baseinstance = radv_get_shader(pipeline, MESA_SHADER_VERTEX)->info.vs.needs_base_instance;
}
}

View file

@ -1737,6 +1737,7 @@ struct radv_pipeline {
struct radv_ia_multi_vgt_param_helpers ia_multi_vgt_param;
uint8_t vtx_emit_num;
bool uses_drawid;
bool uses_baseinstance;
bool can_use_guardband;
uint32_t needed_dynamic_state;
bool disable_out_of_order_rast_for_occlusion;