mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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@marek.ca> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4581>
This commit is contained in:
parent
b6455e9a6a
commit
300d0e2b80
1 changed files with 0 additions and 13 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue