mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
zink: be less picky about tiled resources
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2678>
This commit is contained in:
parent
040a2643c0
commit
b5b25ee032
1 changed files with 1 additions and 5 deletions
|
|
@ -179,12 +179,8 @@ resource_create(struct pipe_screen *pscreen,
|
|||
templ->target == PIPE_TEXTURE_CUBE_ARRAY)
|
||||
ici.arrayLayers *= 6;
|
||||
|
||||
if (templ->bind & (PIPE_BIND_DISPLAY_TARGET |
|
||||
PIPE_BIND_SCANOUT |
|
||||
PIPE_BIND_SHARED)) {
|
||||
// assert(ici.tiling == VK_IMAGE_TILING_LINEAR);
|
||||
if (templ->bind & PIPE_BIND_SHARED)
|
||||
ici.tiling = VK_IMAGE_TILING_LINEAR;
|
||||
}
|
||||
|
||||
if (templ->usage == PIPE_USAGE_STAGING)
|
||||
ici.tiling = VK_IMAGE_TILING_LINEAR;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue