mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-07 03:20:28 +01:00
radeonsi: remove MRT-draw-calls, spill-draw-calls, spill-compute-calls
due to limited usefulness and overhead in si_draw_vbo. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8548>
This commit is contained in:
parent
f2a5148701
commit
73709143d2
5 changed files with 0 additions and 33 deletions
|
|
@ -914,8 +914,6 @@ static void si_launch_grid(struct pipe_context *ctx, const struct pipe_grid_info
|
|||
|
||||
sctx->compute_is_busy = true;
|
||||
sctx->num_compute_calls++;
|
||||
if (sctx->cs_shader_state.uses_scratch)
|
||||
sctx->num_spill_compute_calls++;
|
||||
|
||||
if (cs_regalloc_hang)
|
||||
sctx->flags |= SI_CONTEXT_CS_PARTIAL_FLUSH;
|
||||
|
|
|
|||
|
|
@ -1233,11 +1233,8 @@ struct si_context {
|
|||
/* Misc stats. */
|
||||
unsigned num_draw_calls;
|
||||
unsigned num_decompress_calls;
|
||||
unsigned num_mrt_draw_calls;
|
||||
unsigned num_prim_restart_calls;
|
||||
unsigned num_spill_draw_calls;
|
||||
unsigned num_compute_calls;
|
||||
unsigned num_spill_compute_calls;
|
||||
unsigned num_cp_dma_calls;
|
||||
unsigned num_vs_flushes;
|
||||
unsigned num_ps_flushes;
|
||||
|
|
|
|||
|
|
@ -126,21 +126,12 @@ static bool si_query_sw_begin(struct si_context *sctx, struct si_query *squery)
|
|||
case SI_QUERY_DECOMPRESS_CALLS:
|
||||
query->begin_result = sctx->num_decompress_calls;
|
||||
break;
|
||||
case SI_QUERY_MRT_DRAW_CALLS:
|
||||
query->begin_result = sctx->num_mrt_draw_calls;
|
||||
break;
|
||||
case SI_QUERY_PRIM_RESTART_CALLS:
|
||||
query->begin_result = sctx->num_prim_restart_calls;
|
||||
break;
|
||||
case SI_QUERY_SPILL_DRAW_CALLS:
|
||||
query->begin_result = sctx->num_spill_draw_calls;
|
||||
break;
|
||||
case SI_QUERY_COMPUTE_CALLS:
|
||||
query->begin_result = sctx->num_compute_calls;
|
||||
break;
|
||||
case SI_QUERY_SPILL_COMPUTE_CALLS:
|
||||
query->begin_result = sctx->num_spill_compute_calls;
|
||||
break;
|
||||
case SI_QUERY_CP_DMA_CALLS:
|
||||
query->begin_result = sctx->num_cp_dma_calls;
|
||||
break;
|
||||
|
|
@ -301,21 +292,12 @@ static bool si_query_sw_end(struct si_context *sctx, struct si_query *squery)
|
|||
case SI_QUERY_DECOMPRESS_CALLS:
|
||||
query->end_result = sctx->num_decompress_calls;
|
||||
break;
|
||||
case SI_QUERY_MRT_DRAW_CALLS:
|
||||
query->end_result = sctx->num_mrt_draw_calls;
|
||||
break;
|
||||
case SI_QUERY_PRIM_RESTART_CALLS:
|
||||
query->end_result = sctx->num_prim_restart_calls;
|
||||
break;
|
||||
case SI_QUERY_SPILL_DRAW_CALLS:
|
||||
query->end_result = sctx->num_spill_draw_calls;
|
||||
break;
|
||||
case SI_QUERY_COMPUTE_CALLS:
|
||||
query->end_result = sctx->num_compute_calls;
|
||||
break;
|
||||
case SI_QUERY_SPILL_COMPUTE_CALLS:
|
||||
query->end_result = sctx->num_spill_compute_calls;
|
||||
break;
|
||||
case SI_QUERY_CP_DMA_CALLS:
|
||||
query->end_result = sctx->num_cp_dma_calls;
|
||||
break;
|
||||
|
|
@ -1670,11 +1652,8 @@ static struct pipe_driver_query_info si_driver_query_list[] = {
|
|||
X("num-shaders-created", NUM_SHADERS_CREATED, UINT64, CUMULATIVE),
|
||||
X("draw-calls", DRAW_CALLS, UINT64, AVERAGE),
|
||||
X("decompress-calls", DECOMPRESS_CALLS, UINT64, AVERAGE),
|
||||
X("MRT-draw-calls", MRT_DRAW_CALLS, UINT64, AVERAGE),
|
||||
X("prim-restart-calls", PRIM_RESTART_CALLS, UINT64, AVERAGE),
|
||||
X("spill-draw-calls", SPILL_DRAW_CALLS, UINT64, AVERAGE),
|
||||
X("compute-calls", COMPUTE_CALLS, UINT64, AVERAGE),
|
||||
X("spill-compute-calls", SPILL_COMPUTE_CALLS, UINT64, AVERAGE),
|
||||
X("cp-dma-calls", CP_DMA_CALLS, UINT64, AVERAGE),
|
||||
X("num-vs-flushes", NUM_VS_FLUSHES, UINT64, AVERAGE),
|
||||
X("num-ps-flushes", NUM_PS_FLUSHES, UINT64, AVERAGE),
|
||||
|
|
|
|||
|
|
@ -44,11 +44,8 @@ enum
|
|||
{
|
||||
SI_QUERY_DRAW_CALLS = PIPE_QUERY_DRIVER_SPECIFIC,
|
||||
SI_QUERY_DECOMPRESS_CALLS,
|
||||
SI_QUERY_MRT_DRAW_CALLS,
|
||||
SI_QUERY_PRIM_RESTART_CALLS,
|
||||
SI_QUERY_SPILL_DRAW_CALLS,
|
||||
SI_QUERY_COMPUTE_CALLS,
|
||||
SI_QUERY_SPILL_COMPUTE_CALLS,
|
||||
SI_QUERY_CP_DMA_CALLS,
|
||||
SI_QUERY_NUM_VS_FLUSHES,
|
||||
SI_QUERY_NUM_PS_FLUSHES,
|
||||
|
|
|
|||
|
|
@ -2125,12 +2125,8 @@ static void si_draw_vbo(struct pipe_context *ctx,
|
|||
sctx->num_decompress_calls++;
|
||||
} else {
|
||||
sctx->num_draw_calls++;
|
||||
if (sctx->framebuffer.state.nr_cbufs > 1)
|
||||
sctx->num_mrt_draw_calls++;
|
||||
if (primitive_restart)
|
||||
sctx->num_prim_restart_calls++;
|
||||
if (G_0286E8_WAVESIZE(sctx->spi_tmpring_size))
|
||||
sctx->num_spill_draw_calls++;
|
||||
}
|
||||
|
||||
DRAW_CLEANUP;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue