radv: drop useless param in emit_depth_decomp()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 29 Sep 2017 09:07:22 +0000 (11:07 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 2 Oct 2017 09:56:20 +0000 (11:56 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_meta_decompress.c

index 23bc2e6dfd4c7fd92e26796b17036690550fe4fa..fe18ddfb91f5144c633e3d5711f76accbf53339f 100644 (file)
@@ -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,