aux/trace: move trace_sample_view logic
authorJulia Tatz <tatz.j@northeastern.edu>
Sat, 29 Jul 2023 23:35:55 +0000 (19:35 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 16 Aug 2023 00:11:30 +0000 (00:11 +0000)
commit713437b2fcda0ad61b9454dd2ba87fe3b6959648
tree624049fdcee09b33afe9ac552f88abae58bb3d7a
parent9ff20e23fed6f4e4bb9e3b0f6653ed9aca413180
aux/trace: move trace_sample_view logic

it's defined in tr_texture, so it makes sense and is more
re-usable to have it's logic there.
Also documented the magic number used for private refcounting

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24482>
src/gallium/auxiliary/driver_trace/tr_context.c
src/gallium/auxiliary/driver_trace/tr_texture.c
src/gallium/auxiliary/driver_trace/tr_texture.h