We will use this when we implement copying images to buffers using the
TLB, where we'll need to setup a framebuffer and tiling configuration
for the TLB store to the destination buffer.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
framebuffer->internal_bpp = max_bpp;
}
-static void
-compute_tile_size_for_framebuffer(struct v3dv_framebuffer *framebuffer)
+void
+v3dv_framebuffer_compute_tiling_params(struct v3dv_framebuffer *framebuffer)
{
static const uint8_t tile_sizes[] = {
64, 64,
}
compute_internal_bpp_from_attachments(framebuffer);
- compute_tile_size_for_framebuffer(framebuffer);
+ v3dv_framebuffer_compute_tiling_params(framebuffer);
*pFramebuffer = v3dv_framebuffer_to_handle(framebuffer);
struct v3dv_image_view *attachments[0];
};
+void v3dv_framebuffer_compute_tiling_params(struct v3dv_framebuffer *framebuffer);
+
struct v3dv_cmd_pool {
VkAllocationCallbacks alloc;
struct list_head cmd_buffers;