summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2020-06-19 15:27:51 +1000
committerDave Airlie <airlied@redhat.com>2020-08-19 10:16:14 +1000
commite137bbb87fa8ce9a4ab1f24bba26f12c1f65cbc9 (patch)
tree288eb0a28fc269670b8bb061207fdf2e9d3570a1 /src/gallium/drivers/llvmpipe
parent6c7383d315f615bb5f003e1af130112f964853cc (diff)
llvmpipe/cs: update compute counters not fragment shader.
This was updating the wrong counters. Reviewed-by: Eric Engestrom <eric@engestrom.ch> Fixes: a6f6ca37c82bb6810971 ("llvmpipe: add initial shader create/bind/destroy variants framework.") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6339>
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_cs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_cs.c b/src/gallium/drivers/llvmpipe/lp_state_cs.c
index be6d648cd53..3a437185ad6 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_cs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_cs.c
@@ -509,8 +509,8 @@ llvmpipe_remove_cs_shader_variant(struct llvmpipe_context *lp,
/* remove from context's list */
remove_from_list(&variant->list_item_global);
- lp->nr_fs_variants--;
- lp->nr_fs_instrs -= variant->nr_instrs;
+ lp->nr_cs_variants--;
+ lp->nr_cs_instrs -= variant->nr_instrs;
FREE(variant);
}