diff options
author | Dave Airlie <[email protected]> | 2017-05-02 09:49:14 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-05-03 06:00:17 +1000 |
commit | 7e8d0a402b0a0db431da04f5126853de50729ed7 (patch) | |
tree | 74d4764a218de4eb1e16ee4a0bd111e2b66cbe70 /src/amd/vulkan/radv_cmd_buffer.c | |
parent | d5400a5ec2afdbca1c2745183f171ac72d6f0647 (diff) |
radv: move some image info into a separate struct.
This is to rework the surface code like radeonsi.
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_cmd_buffer.c')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index de103855158..198c599fe0a 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -3030,8 +3030,8 @@ static void radv_handle_depth_image_transition(struct radv_cmd_buffer *cmd_buffe if (dst_layout == VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL && (pending_clears & vk_format_aspects(image->vk_format)) == vk_format_aspects(image->vk_format) && cmd_buffer->state.render_area.offset.x == 0 && cmd_buffer->state.render_area.offset.y == 0 && - cmd_buffer->state.render_area.extent.width == image->extent.width && - cmd_buffer->state.render_area.extent.height == image->extent.height) { + cmd_buffer->state.render_area.extent.width == image->info.width && + cmd_buffer->state.render_area.extent.height == image->info.height) { /* The clear will initialize htile. */ return; } else if (src_layout == VK_IMAGE_LAYOUT_UNDEFINED && |