[Mesa-dev] [Bug 110253] glBlitFramebuffer fails on MSAA fbo source.
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Mar 27 06:37:26 UTC 2019
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 at lists.freedesktop.org
Reporter: wanghaipeng03 at baidu.com
QA Contact: mesa-dev at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190327/9cf5b0ce/attachment.html>
More information about the mesa-dev
mailing list