llvmpipe/cs: update compute counters not fragment shader.
This was updating the wrong counters.
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Fixes: a6f6ca37c8 ("llvmpipe: add initial shader create/bind/destroy variants framework.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6339>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user