diff options
author | Marek Olšák <[email protected]> | 2015-08-02 21:12:18 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-08-06 20:44:37 +0200 |
commit | 30a7e0c021c3a77c20c6f041dc80b7dc90ad238f (patch) | |
tree | 6e534f5619e261ddc0d776da5e2fc576351257ae /src/gallium/drivers/radeonsi | |
parent | 70f5e49ba5ca8eb063a0d7db94fbef1585b21b2d (diff) |
radeonsi: add a HUD query showing the number of shaders created
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_shaders.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index f2c8d6c898f..fbcb0f4a1d8 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -653,6 +653,7 @@ static void *si_create_shader_state(struct pipe_context *ctx, sel->tokens = tgsi_dup_tokens(state->tokens); sel->so = state->stream_output; tgsi_scan_shader(state->tokens, &sel->info); + p_atomic_inc(&sscreen->b.num_shaders_created); switch (pipe_shader_type) { case PIPE_SHADER_GEOMETRY: |