@@ -769,8 +769,8 @@ class VulkanDevice : public offloadtest::Device {
769769 auto Tex = std::make_shared<VulkanTexture>(Device, Image, DeviceMemory,
770770 Name, Desc);
771771
772- bool IsRT = (Desc.Usage & TextureUsage::RenderTarget) != 0 ;
773- bool IsDS = (Desc.Usage & TextureUsage::DepthStencil) != 0 ;
772+ const bool IsRT = (Desc.Usage & TextureUsage::RenderTarget) != 0 ;
773+ const bool IsDS = (Desc.Usage & TextureUsage::DepthStencil) != 0 ;
774774 if (IsRT || IsDS) {
775775 VkImageViewCreateInfo ViewCi = {};
776776 ViewCi.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO;
@@ -1544,7 +1544,7 @@ class VulkanDevice : public offloadtest::Device {
15441544 return llvm::Error::success ();
15451545 }
15461546
1547- llvm::Error createRenderPass (Pipeline &P, InvocationState &IS) {
1547+ llvm::Error createRenderPass (InvocationState &IS) {
15481548 std::array<VkAttachmentDescription, 2 > Attachments = {};
15491549
15501550 Attachments[0 ].format = getVulkanFormat (IS.RenderTarget ->Desc .Format );
@@ -1626,7 +1626,7 @@ class VulkanDevice : public offloadtest::Device {
16261626 return llvm::Error::success ();
16271627 }
16281628
1629- llvm::Error createFrameBuffer (Pipeline &P, InvocationState &IS) {
1629+ llvm::Error createFrameBuffer (InvocationState &IS) {
16301630 std::array<VkImageView, 2 > Views = {IS.RenderTarget ->View ,
16311631 IS.DepthStencil ->View };
16321632
@@ -2009,9 +2009,9 @@ class VulkanDevice : public offloadtest::Device {
20092009 VkImageLayout OldLayout,
20102010 VkAccessFlags SrcAccessMask,
20112011 VkPipelineStageFlags SrcStageMask) {
2012- VkImageAspectFlags AspectMask = isDepthFormat (Tex.Desc .Format )
2013- ? VK_IMAGE_ASPECT_DEPTH_BIT
2014- : VK_IMAGE_ASPECT_COLOR_BIT;
2012+ const VkImageAspectFlags AspectMask = isDepthFormat (Tex.Desc .Format )
2013+ ? VK_IMAGE_ASPECT_DEPTH_BIT
2014+ : VK_IMAGE_ASPECT_COLOR_BIT;
20152015
20162016 // Transition texture to transfer source.
20172017 VkImageSubresourceRange SubRange = {};
@@ -2425,10 +2425,10 @@ class VulkanDevice : public offloadtest::Device {
24252425 if (auto Err = createResources (P, State))
24262426 return Err;
24272427 if (P.isGraphics ()) {
2428- if (auto Err = createRenderPass (P, State))
2428+ if (auto Err = createRenderPass (State))
24292429 return Err;
24302430 llvm::outs () << " Render pass created.\n " ;
2431- if (auto Err = createFrameBuffer (P, State))
2431+ if (auto Err = createFrameBuffer (State))
24322432 return Err;
24332433 llvm::outs () << " Frame buffer created.\n " ;
24342434 }
0 commit comments