8a4b443c5b
There are currently 3 different "environments" supported by this backend, and they have slightly different semantics for how resources are accessed, which is only going to get a little weirder when GL images start getting supported. To try to make things less confusing, use an explicit enum with heavy documentation on what's different between them. Reviewed-by: Sil Vilerino <sivileri@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14342>