Mesa (staging/18.3): radv: use 3d shader for gfx9 copies if dst is 3d
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Dec 5 14:21:33 UTC 2018
Module: Mesa
Branch: staging/18.3
Commit: 5b50e6a7ec0dd3714619422c578e5efa8b4eed4f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5b50e6a7ec0dd3714619422c578e5efa8b4eed4f
Author: Dave Airlie <airlied at redhat.com>
Date: Mon Dec 3 14:38:28 2018 +1000
radv: use 3d shader for gfx9 copies if dst is 3d
This fixes some crucible 3d miptree tests I've been working on
when executed using the compute shader path.
Fixes: d08f267814 (radv/gfx9: fix 3d image to image transfers on compute queues.)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
(cherry picked from commit 1363a47c9c4f8482fea9e8a2582a1d8e9db0e8a6)
---
src/amd/vulkan/radv_meta_bufimage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/vulkan/radv_meta_bufimage.c b/src/amd/vulkan/radv_meta_bufimage.c
index 6f074a70b4..e9d680437e 100644
--- a/src/amd/vulkan/radv_meta_bufimage.c
+++ b/src/amd/vulkan/radv_meta_bufimage.c
@@ -2061,7 +2061,7 @@ radv_meta_image_to_image_cs(struct radv_cmd_buffer *cmd_buffer,
itoi_bind_descriptors(cmd_buffer, &src_view, &dst_view);
if (device->physical_device->rad_info.chip_class >= GFX9 &&
- src->image->type == VK_IMAGE_TYPE_3D)
+ (src->image->type == VK_IMAGE_TYPE_3D || dst->image->type == VK_IMAGE_TYPE_3D))
pipeline = cmd_buffer->device->meta_state.itoi.pipeline_3d;
radv_CmdBindPipeline(radv_cmd_buffer_to_handle(cmd_buffer),
VK_PIPELINE_BIND_POINT_COMPUTE, pipeline);
More information about the mesa-commit
mailing list