Mesa (master): turnip: don't limit framebuffer size to image size
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Apr 16 14:19:39 UTC 2020
Module: Mesa
Branch: master
Commit: 300d0e2b809644262481c30cf205761abd2234bb
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=300d0e2b809644262481c30cf205761abd2234bb
Author: Jonathan Marek <jonathan at marek.ca>
Date: Wed Apr 15 18:10:58 2020 -0400
turnip: don't limit framebuffer size to image size
Minor cleanup, I couldn't find anything that suggests this should be done,
and anv doesn't do it either.
Signed-off-by: Jonathan Marek <jonathan at marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4581>
---
src/freedreno/vulkan/tu_device.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c
index d71a4809bc7..e1b495b4440 100644
--- a/src/freedreno/vulkan/tu_device.c
+++ b/src/freedreno/vulkan/tu_device.c
@@ -2003,14 +2003,6 @@ tu_DestroyBuffer(VkDevice _device,
vk_free2(&device->alloc, pAllocator, buffer);
}
-static uint32_t
-tu_surface_max_layer_count(struct tu_image_view *iview)
-{
- return iview->type == VK_IMAGE_VIEW_TYPE_3D
- ? iview->extent.depth
- : (iview->base_layer + iview->layer_count);
-}
-
VkResult
tu_CreateFramebuffer(VkDevice _device,
const VkFramebufferCreateInfo *pCreateInfo,
@@ -2037,11 +2029,6 @@ tu_CreateFramebuffer(VkDevice _device,
VkImageView _iview = pCreateInfo->pAttachments[i];
struct tu_image_view *iview = tu_image_view_from_handle(_iview);
framebuffer->attachments[i].attachment = iview;
-
- framebuffer->width = MIN2(framebuffer->width, iview->extent.width);
- framebuffer->height = MIN2(framebuffer->height, iview->extent.height);
- framebuffer->layers =
- MIN2(framebuffer->layers, tu_surface_max_layer_count(iview));
}
*pFramebuffer = tu_framebuffer_to_handle(framebuffer);
More information about the mesa-commit
mailing list