Summary: | Resolving the HiZ buffer fails when using a GLES API | ||
---|---|---|---|
Product: | Mesa | Reporter: | Neil Roberts <nroberts> |
Component: | Drivers/DRI/i965 | Assignee: | Chad Versace <chadversary> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Test case
gen6_hiz: Don't bind GL_DRAW_FRAMEBUFFER on GLES |
Description
Neil Roberts
2011-12-01 05:47:12 UTC
Created attachment 54010 [details]
Test case
Created attachment 54011 [details] [review] gen6_hiz: Don't bind GL_DRAW_FRAMEBUFFER on GLES When using Mesa with a GLES API, calling _mesa_FramebufferRenderbuffer with GL_DRAW_FRAMEBUFFER will report a 'user error' because get_framebuffer_target validates that this enum from the framebuffer blit extension is only used on GL. To work around it this patch makes it use the GL_FRAMEBUFFER enum instead in that case. I made a modification to the patch, and posted it to mesa-dev for review. http://article.gmane.org/gmane.comp.video.mesa3d.devel/35980 Mark RESOLVED/FIXED. My change to the patch broke it because I wrongly assumed that the extension bit for EXT_framebuffer_blit was off in an ES context, since the extension doesn't exist there. But that's not how Mesa's extension works, which I should have known; I plumbed it before. Neil, your original patch has been pushed to the master and 8.0 branches. master: 9462b8447864c754252cd2580c9e1e4d36d5cc63 8.0: 399b9799de9980b8ebc0ba46304be207b28b7825 |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.