diff options
author | Jonathan Marek <[email protected]> | 2020-04-15 18:10:58 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-16 14:04:18 +0000 |
commit | 300d0e2b809644262481c30cf205761abd2234bb (patch) | |
tree | ebda4a444935eb5affa862252e7937233c94d6eb /src | |
parent | b6455e9a6a7dcd37483d1ff2193161c3568e74f6 (diff) |
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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4581>
Diffstat (limited to 'src')
-rw-r--r-- | src/freedreno/vulkan/tu_device.c | 13 |
1 files changed, 0 insertions, 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); |