llvmpipe/cs: update compute counters not fragment shader.
authorDave Airlie <airlied@redhat.com>
Fri, 19 Jun 2020 05:27:51 +0000 (15:27 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 19 Aug 2020 00:16:14 +0000 (10:16 +1000)
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>

src/gallium/drivers/llvmpipe/lp_state_cs.c

index be6d648cd537a830259a5aadc54343812d5af96c..3a437185ad63b1f446a4d154cf2b908e557cd310 100644 (file)
@@ -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);
 }