aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_image.c
diff options
context:
space:
mode:
authorAlex Smith <[email protected]>2017-07-21 17:00:00 +0100
committerDave Airlie <[email protected]>2017-07-22 06:40:29 +1000
commitaf9d6a8a99fa67bade628028b7265ae21445a930 (patch)
treec3e05e416608b8640417d6c7eca0bb0091ba81da /src/amd/vulkan/radv_image.c
parentd1e7153228304eb1be85580cbfdea1a57c5f203b (diff)
radv: Generate storage image descriptors unconditionally
We can also use storage images internally for resolves, which don't require TRANSFER_DST usage on the image, so currently we may not create the needed descriptors. Just create these descriptors unconditionally. Fixes: 0e1886efb9e ("radv: Fix descriptors for cube images with VK_IMAGE_USAGE_STORAGE_BIT") Reported-by: Grazvydas Ignotas <[email protected]> Signed-off-by: Alex Smith <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_image.c')
-rw-r--r--src/amd/vulkan/radv_image.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index f5fb790ddaf..d8b7e8f421f 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -945,10 +945,7 @@ radv_image_view_init(struct radv_image_view *iview,
iview->base_mip = range->baseMipLevel;
radv_image_view_make_descriptor(iview, device, pCreateInfo, false);
-
- /* For transfers we may use the image as a storage image. */
- if (image->usage & (VK_IMAGE_USAGE_STORAGE_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT))
- radv_image_view_make_descriptor(iview, device, pCreateInfo, true);
+ radv_image_view_make_descriptor(iview, device, pCreateInfo, true);
}
bool radv_layout_has_htile(const struct radv_image *image,