https://bugs.freedesktop.org/show_bug.cgi?id=110253
Bug ID: 110253
Summary: glBlitFramebuffer fails on MSAA fbo source.
Product: Mesa
Version: 19.0
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/swr
Assignee: mesa-dev@lists.freedesktop.org
Reporter: wanghaipen...@baidu.com
QA Contact: mesa-dev@lists.freedesktop.org
https://github.com/mesa3d/mesa/blob/master/src/gallium/drivers/swr/swr_screen.cpp#L908
https://github.com/mesa3d/mesa/blob/master/src/gallium/drivers/swr/swr_screen.cpp#L105
when using MSAA fbo as read source, and OSMesa framebuffer as target,
glBlitFramebuffer fails。
swr_blit: color resolve : 8 -> 0
swr: blit unsupported r8g8b8a8_unorm -> r8g8b8a8_unorm
I think it may be solved by setting nr_storage_samples to 0 in
src/gallium/drivers/swr/swr_screen.cpp swr_create_resolve_resource
/* Create a single-sample copy of the resource. Copy the original
* resource parameters and set flag to prevent recursion when re-calling
* resource_create */
struct pipe_resource alt_template = msaa_res->base;
alt_template.nr_samples = 0;
alt_template.nr_storage_samples = 0;
alt_template.flags |= SWR_RESOURCE_FLAG_ALT_SURFACE;
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev