aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-09-29 11:07:22 +0200
committerSamuel Pitoiset <[email protected]>2017-10-02 11:56:20 +0200
commit331a4f885a664b3c74a56c72e65ad641c221976f (patch)
tree5cf7b3eef9ddbd906dad2138d2fb3c01cd480438 /src
parent87f4e432e3a973f7e299f11a3d93f85a3c241bfd (diff)
radv: drop useless param in emit_depth_decomp()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/amd/vulkan/radv_meta_decompress.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/amd/vulkan/radv_meta_decompress.c b/src/amd/vulkan/radv_meta_decompress.c
index 23bc2e6dfd4..fe18ddfb91f 100644
--- a/src/amd/vulkan/radv_meta_decompress.c
+++ b/src/amd/vulkan/radv_meta_decompress.c
@@ -269,7 +269,6 @@ cleanup:
static void
emit_depth_decomp(struct radv_cmd_buffer *cmd_buffer,
- const VkOffset2D *dest_offset,
const VkExtent2D *depth_decomp_extent,
VkPipeline pipeline_h)
{
@@ -283,8 +282,8 @@ emit_depth_decomp(struct radv_cmd_buffer *cmd_buffer,
}
radv_CmdSetViewport(radv_cmd_buffer_to_handle(cmd_buffer), 0, 1, &(VkViewport) {
- .x = dest_offset->x,
- .y = dest_offset->y,
+ .x = 0,
+ .y = 0,
.width = depth_decomp_extent->width,
.height = depth_decomp_extent->height,
.minDepth = 0.0f,
@@ -292,7 +291,7 @@ emit_depth_decomp(struct radv_cmd_buffer *cmd_buffer,
});
radv_CmdSetScissor(radv_cmd_buffer_to_handle(cmd_buffer), 0, 1, &(VkRect2D) {
- .offset = *dest_offset,
+ .offset = { 0, 0 },
.extent = *depth_decomp_extent,
});
@@ -394,7 +393,7 @@ static void radv_process_depth_image_inplace(struct radv_cmd_buffer *cmd_buffer,
unreachable("unknown operation");
}
- emit_depth_decomp(cmd_buffer, &(VkOffset2D){0, 0 }, &(VkExtent2D){width, height}, pipeline_h);
+ emit_depth_decomp(cmd_buffer, &(VkExtent2D){width, height}, pipeline_h);
radv_CmdEndRenderPass(cmd_buffer_h);
radv_DestroyFramebuffer(device_h, fb_h,