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>
/* 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);
}