anv: remove 3DSTATE_VF_STATISTICS from pipeline

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32329>
This commit is contained in:
Lionel Landwerlin 2024-11-19 16:52:55 +02:00 committed by Marge Bot
parent ce40a1e05b
commit c36f7e42a7
4 changed files with 5 additions and 19 deletions

View file

@ -590,11 +590,6 @@ anv_cmd_buffer_flush_pipeline_state(struct anv_cmd_buffer *cmd_buffer,
assert_empty(final.sbe_mesh);
}
/* States that should never vary between pipelines, but can be affected by
* blorp etc...
*/
assert_identical(VF_STATISTICS, final.vf_statistics);
/* States that can vary in length */
diff_var_state(VF_SGVS_INSTANCING, final.vf_sgvs_instancing);
diff_var_state(SO_DECL_LIST, final.so_decl_list);

View file

@ -4857,7 +4857,6 @@ struct anv_graphics_pipeline {
/* Fully backed instructions, ready to be emitted in the anv_cmd_buffer */
struct {
struct anv_gfx_state_ptr urb;
struct anv_gfx_state_ptr vf_statistics;
struct anv_gfx_state_ptr vf_sgvs;
struct anv_gfx_state_ptr vf_sgvs_2;
struct anv_gfx_state_ptr vf_sgvs_instancing;

View file

@ -1927,8 +1927,11 @@ cmd_buffer_gfx_state_emission(struct anv_cmd_buffer *cmd_buffer)
final.ds, protected);
}
if (BITSET_TEST(hw_state->dirty, ANV_GFX_STATE_VF_STATISTICS))
anv_batch_emit_pipeline_state(&cmd_buffer->batch, pipeline, final.vf_statistics);
if (BITSET_TEST(hw_state->dirty, ANV_GFX_STATE_VF_STATISTICS)) {
anv_batch_emit(&cmd_buffer->batch, GENX(3DSTATE_VF_STATISTICS), vfs) {
vfs.StatisticsEnable = true;
}
}
if (BITSET_TEST(hw_state->dirty, ANV_GFX_STATE_SBE))
anv_batch_emit_pipeline_state(&cmd_buffer->batch, pipeline, final.sbe);

View file

@ -1567,15 +1567,6 @@ emit_3dstate_ps_extra(struct anv_graphics_pipeline *pipeline,
}
}
static void
emit_3dstate_vf_statistics(struct anv_graphics_pipeline *pipeline)
{
anv_pipeline_emit(pipeline, final.vf_statistics,
GENX(3DSTATE_VF_STATISTICS), vfs) {
vfs.StatisticsEnable = true;
}
}
static void
compute_kill_pixel(struct anv_graphics_pipeline *pipeline,
const struct vk_multisample_state *ms,
@ -1885,8 +1876,6 @@ genX(graphics_pipeline_emit)(struct anv_graphics_pipeline *pipeline,
}
#endif
emit_3dstate_vf_statistics(pipeline);
if (anv_pipeline_is_primitive(pipeline)) {
emit_vertex_input(pipeline, state, state->vi);