Mesa (master): llvmpipe/cs: update compute counters not fragment shader.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Aug 19 01:23:15 UTC 2020
Module: Mesa
Branch: master
Commit: e137bbb87fa8ce9a4ab1f24bba26f12c1f65cbc9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e137bbb87fa8ce9a4ab1f24bba26f12c1f65cbc9
Author: Dave Airlie <airlied at redhat.com>
Date: Fri Jun 19 15:27:51 2020 +1000
llvmpipe/cs: update compute counters not fragment shader.
This was updating the wrong counters.
Reviewed-by: Eric Engestrom <eric at engestrom.ch>
Fixes: a6f6ca37c82bb6810971 ("llvmpipe: add initial shader create/bind/destroy variants framework.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6339>
---
src/gallium/drivers/llvmpipe/lp_state_cs.c | 4 ++--
1 file 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);
}
More information about the mesa-commit
mailing list