mesa/st: Add st_texture_image_resource_level
authorNanley Chery <nanley.g.chery@intel.com>
Mon, 24 Oct 2022 23:44:03 +0000 (16:44 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 10 Feb 2023 01:40:47 +0000 (01:40 +0000)
commit6d57614fd01228f11a7cf77b56fbe7514790d759
tree7637699bf705a4ed71768d64377db97119a1b5c0
parent637ff224132d3c839f27a76d8a3a10984892cb28
mesa/st: Add st_texture_image_resource_level

Returns the level of the gl_texture_image with respect to the resource
it's allocated within. Example: returns 0 for non-finalized texture.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19827>
src/mesa/state_tracker/st_texture.c
src/mesa/state_tracker/st_texture.h