mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-22 19:20:22 +01:00
zink: store drm format as internal_format for imported resources
internal_format is the "real" format of a resource, and the "real" format of imported resources is the external-facing format, not the pipe format this ensures the correct format is available for internal ops, such as nplanes queries Fixes:2e2775c11b("zink: fix PIPE_RESOURCE_PARAM_NPLANES with format modifier") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20753> (cherry picked from commit072e29a22e)
This commit is contained in:
parent
6ad6660013
commit
d965740df1
2 changed files with 2 additions and 1 deletions
|
|
@ -220,7 +220,7 @@
|
|||
"description": "zink: store drm format as internal_format for imported resources",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "2e2775c11b0d17472afd53b1398a3af7d9086a75"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1553,6 +1553,7 @@ zink_resource_from_handle(struct pipe_screen *pscreen,
|
|||
res->valid = true;
|
||||
else
|
||||
tc_buffer_disable_cpu_storage(pres);
|
||||
res->internal_format = whandle->format;
|
||||
}
|
||||
return pres;
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue