mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Remove rtv clears in Vulkan runner.
Signed-off-by: Ethan Lee <flibitijibibo@gmail.com> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
c74d148cbe
commit
e541e71532
Notes:
Alexandre Julliard
2023-04-26 22:59:12 +02:00
Approved-by: Zebediah Figura (@zfigura) Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/136
@ -930,12 +930,10 @@ static bool vulkan_runner_draw(struct shader_runner *r,
|
||||
static const VkRect2D rt_rect = {.extent.width = RENDER_TARGET_WIDTH, .extent.height = RENDER_TARGET_HEIGHT};
|
||||
VkRenderPassBeginInfo pass_begin_desc = {.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO};
|
||||
VkCommandBuffer cmd_buffer = runner->cmd_buffer;
|
||||
VkClearAttachment clear_attachment;
|
||||
VkDescriptorSetLayout set_layout;
|
||||
VkPipelineLayout pipeline_layout;
|
||||
VkDevice device = runner->device;
|
||||
VkRenderPass render_pass;
|
||||
VkClearRect clear_rect;
|
||||
VkPipeline pipeline;
|
||||
VkFramebuffer fb;
|
||||
bool ret = false;
|
||||
@ -958,16 +956,6 @@ static bool vulkan_runner_draw(struct shader_runner *r,
|
||||
|
||||
VK_CALL(vkCmdBeginRenderPass(cmd_buffer, &pass_begin_desc, VK_SUBPASS_CONTENTS_INLINE));
|
||||
|
||||
clear_attachment.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
|
||||
clear_attachment.colorAttachment = 0;
|
||||
memset(&clear_attachment.clearValue.color, 0, sizeof(clear_attachment.clearValue.color));
|
||||
|
||||
clear_rect.rect = rt_rect;
|
||||
clear_rect.baseArrayLayer = 0;
|
||||
clear_rect.layerCount = 1;
|
||||
|
||||
VK_CALL(vkCmdClearAttachments(cmd_buffer, 1, &clear_attachment, 1, &clear_rect));
|
||||
|
||||
VK_CALL(vkCmdBindPipeline(cmd_buffer, VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline));
|
||||
|
||||
bind_resources(runner, VK_PIPELINE_BIND_POINT_GRAPHICS, set_layout, pipeline_layout);
|
||||
|
Loading…
Reference in New Issue
Block a user