mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 02:10:24 +01:00
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:
parent
e904300270
commit
957e19e8a7
2 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1252,6 +1252,7 @@ struct zink_resource_object {
|
|||
bool host_visible;
|
||||
bool coherent;
|
||||
bool is_aux;
|
||||
bool immutable_handle;
|
||||
};
|
||||
|
||||
/* "gfx" includes mesh here */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue