util: add a resource wrapper to get resource samples
authorDave Airlie <airlied@redhat.com>
Mon, 30 Dec 2019 21:03:26 +0000 (07:03 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 6 May 2020 06:20:37 +0000 (06:20 +0000)
commit339aec7241f77fc027ee32d1537b30505c20028c
tree532274e665e78422a1b3eb4bf1a2d8dc03b48d12
parent19703900260d51b709111206caebbad3a9578f7b
util: add a resource wrapper to get resource samples

This return 1 as a baseline and should be used in allocator paths.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4122>
src/gallium/auxiliary/util/u_inlines.h