zink: flag immutable handles as such when creating resources

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39336>
This commit is contained in:
Mike Blumenkrantz 2026-01-15 13:32:30 -05:00 committed by Marge Bot
parent e904300270
commit 957e19e8a7
2 changed files with 2 additions and 0 deletions

View file

@ -2067,6 +2067,7 @@ zink_resource_from_handle(struct pipe_screen *pscreen,
res->valid = true;
else
tc_buffer_disable_cpu_storage(pres);
res->obj->immutable_handle = true;
res->internal_format = whandle->format;
}
return pres;

View file

@ -1252,6 +1252,7 @@ struct zink_resource_object {
bool host_visible;
bool coherent;
bool is_aux;
bool immutable_handle;
};
/* "gfx" includes mesh here */