summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_meta_resolve_fs.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-12-28 00:19:28 +0100
committerBas Nieuwenhuizen <[email protected]>2017-12-28 00:30:47 +0100
commitda192b50b246af80b87050ac75848dfac3c0afb0 (patch)
treeaeddebf02c75f947a0ed57333039f12afee6c8d2 /src/amd/vulkan/radv_meta_resolve_fs.c
parent73279da41dae991afc5d4e4dbe51542060e21c59 (diff)
radv: Use correct framebuffer size for partial FS resolves.
Framebuffer is from 0,0, not (dst.x, dst.y). Fixes: 69136f4e633 "radv/meta: add resolve pass using fragment/vertex shaders" Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_meta_resolve_fs.c')
-rw-r--r--src/amd/vulkan/radv_meta_resolve_fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_meta_resolve_fs.c b/src/amd/vulkan/radv_meta_resolve_fs.c
index b937c12ec11..f34e387a07d 100644
--- a/src/amd/vulkan/radv_meta_resolve_fs.c
+++ b/src/amd/vulkan/radv_meta_resolve_fs.c
@@ -540,8 +540,8 @@ void radv_meta_resolve_fragment_image(struct radv_cmd_buffer *cmd_buffer,
.pAttachments = (VkImageView[]) {
radv_image_view_to_handle(&dest_iview),
},
- .width = extent.width,
- .height = extent.height,
+ .width = extent.width + dstOffset.x,
+ .height = extent.height + dstOffset.y,
.layers = 1
}, &cmd_buffer->pool->alloc, &fb);