iris: Use a num_buckets pointer in add_bucket
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 1 Dec 2021 18:45:05 +0000 (13:45 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 14 Dec 2021 07:37:42 +0000 (07:37 +0000)
commit7a8bf62ac83e50e9da7a24ae474bcf5c7b2f43d0
treef24b6f078377c354923942a984f655b809e70791
parentb77935a83d40746b7a6591b4ca938e5ccd4e8fec
iris: Use a num_buckets pointer in add_bucket

Store a pointer to the appropriate cache bucket counter, then increment
the integer it points to. This keeps us from having to add code for
incrementing when a new cache bucket is added.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14012>
src/gallium/drivers/iris/iris_bufmgr.c