aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-09-23 22:00:12 +0200
committerMarge Bot <[email protected]>2020-04-16 09:57:25 +0000
commitb5b25ee0327f65d837ff84f59b497232d52ec25d (patch)
tree17e0441a2cb278da1440bab267f85026c04d98a9 /src/gallium/drivers
parent040a2643c08dd0accee6942bc05836b99417ee49 (diff)
zink: be less picky about tiled resources
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2678>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/zink/zink_resource.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c
index 3d1462bfd3f..e8073b45988 100644
--- a/src/gallium/drivers/zink/zink_resource.c
+++ b/src/gallium/drivers/zink/zink_resource.c
@@ -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;