remove some unused functions and vars
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
2c77bf96d9
commit
2585ee7696
|
@ -1986,15 +1986,6 @@ static inline uint32_t VULKAN_INTERNAL_TextureBlockSize(
|
|||
}
|
||||
}
|
||||
|
||||
static inline VkDeviceSize VULKAN_INTERNAL_BytesPerImage(
|
||||
uint32_t width,
|
||||
uint32_t height,
|
||||
VkFormat format
|
||||
) {
|
||||
uint32_t blockSize = VULKAN_INTERNAL_TextureBlockSize(format);
|
||||
return (width * height * VULKAN_INTERNAL_BytesPerPixel(format)) / (blockSize * blockSize);
|
||||
}
|
||||
|
||||
static inline VkSampleCountFlagBits VULKAN_INTERNAL_GetMaxMultiSampleCount(
|
||||
VulkanRenderer *renderer,
|
||||
VkSampleCountFlagBits multiSampleCount
|
||||
|
@ -3222,39 +3213,6 @@ static void VULKAN_INTERNAL_ImageMemoryBarrier(
|
|||
textureSlice->resourceAccessType = nextAccess;
|
||||
}
|
||||
|
||||
static void VULKAN_INTERNAL_ImageMemoryMultiBarrier(
|
||||
VulkanRenderer *renderer,
|
||||
VkCommandBuffer commandBuffer,
|
||||
VulkanResourceAccessType nextAccess,
|
||||
VulkanTexture *texture,
|
||||
uint32_t baseLayer,
|
||||
uint32_t layerCount,
|
||||
uint32_t baseLevel,
|
||||
uint32_t levelCount
|
||||
) {
|
||||
VulkanTextureSlice *textureSlice;
|
||||
uint32_t i, j;
|
||||
|
||||
for (i = baseLayer; i < baseLayer + layerCount; i += 1)
|
||||
{
|
||||
for (j = baseLevel; j < baseLevel + levelCount; j += 1)
|
||||
{
|
||||
textureSlice = VULKAN_INTERNAL_FetchTextureSlice(
|
||||
texture,
|
||||
i,
|
||||
j
|
||||
);
|
||||
|
||||
VULKAN_INTERNAL_ImageMemoryBarrier(
|
||||
renderer,
|
||||
commandBuffer,
|
||||
nextAccess,
|
||||
textureSlice
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Resource tracking */
|
||||
|
||||
#define ADD_TO_ARRAY_UNIQUE(resource, type, array, count, capacity) \
|
||||
|
@ -4393,20 +4351,6 @@ static VulkanTextureSlice* VULKAN_INTERNAL_FetchTextureSlice(
|
|||
];
|
||||
}
|
||||
|
||||
static VulkanTexture* VULKAN_INTERNAL_FetchMSAATexture(
|
||||
VulkanTexture *texture,
|
||||
uint32_t layer,
|
||||
uint32_t level
|
||||
) {
|
||||
return texture->slices[
|
||||
VULKAN_INTERNAL_GetTextureSliceIndex(
|
||||
texture,
|
||||
layer,
|
||||
level
|
||||
)
|
||||
].msaaTex;
|
||||
}
|
||||
|
||||
static VulkanTextureSlice* VULKAN_INTERNAL_RefreshToVulkanTextureSlice(
|
||||
Refresh_TextureSlice *refreshTextureSlice
|
||||
) {
|
||||
|
@ -6861,9 +6805,6 @@ static Refresh_Texture* VULKAN_CreateTexture(
|
|||
VK_IMAGE_USAGE_TRANSFER_SRC_BIT
|
||||
);
|
||||
VkImageAspectFlags imageAspectFlags;
|
||||
uint8_t isRenderTarget =
|
||||
((imageUsageFlags & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT) != 0) ||
|
||||
((imageUsageFlags & VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT) != 0);
|
||||
uint8_t isDepthFormat = IsRefreshDepthFormat(textureCreateInfo->format);
|
||||
VkFormat format;
|
||||
VulkanTextureContainer *container;
|
||||
|
@ -7765,7 +7706,6 @@ static void VULKAN_BeginRenderPass(
|
|||
uint32_t multisampleAttachmentCount = 0;
|
||||
uint32_t totalColorAttachmentCount = 0;
|
||||
uint32_t i;
|
||||
VkImageAspectFlags depthAspectFlags;
|
||||
Refresh_Viewport defaultViewport;
|
||||
Refresh_Rect defaultScissor;
|
||||
uint32_t framebufferWidth = UINT32_MAX;
|
||||
|
@ -7917,13 +7857,6 @@ static void VULKAN_BeginRenderPass(
|
|||
|
||||
vulkanCommandBuffer->renderPassDepthTextureSlice = textureSlice;
|
||||
|
||||
depthAspectFlags = VK_IMAGE_ASPECT_DEPTH_BIT;
|
||||
|
||||
if (IsStencilFormat(textureSlice->parent->format))
|
||||
{
|
||||
depthAspectFlags |= VK_IMAGE_ASPECT_STENCIL_BIT;
|
||||
}
|
||||
|
||||
VULKAN_INTERNAL_ImageMemoryBarrier(
|
||||
renderer,
|
||||
vulkanCommandBuffer->commandBuffer,
|
||||
|
|
Loading…
Reference in New Issue