Summary: | [i965] piglit fbo-drawbuffers-none glClearBuffer fails | ||
---|---|---|---|
Product: | Mesa | Reporter: | Iago Toral <itoral> |
Component: | Drivers/DRI/i965 | Assignee: | Ian Romanick <idr> |
Status: | RESOLVED FIXED | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | itoral |
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Iago Toral
2014-03-31 11:46:38 UTC
The problem seems to be that we are clearing all enabled color buffers even if glClearBuffer specifies a single buffer to be cleared. I'll provide a patch shortly. Sent patch to the mailing list for review: http://lists.freedesktop.org/archives/mesa-dev/2014-March/056846.html Fixed in master by: commit a5957f7bc5e3618243f03cf9459394f9a83e5971 Author: Iago Toral Quiroga <itoral@igalia.com> Date: Mon Mar 31 14:17:08 2014 +0200 i965: glClearBuffer() should only clear a single buffer. glClearBuffer() is currently clearing all active draw color buffers (all buffers that have not been set to GL_NONE when calling glDrawBuffers) instead of only clearing the one it receives as parameter. Altough brw_clear() receives a bit mask indicating the color buffers that should be cleared, this mask is ignored when calling brw_blorp_clear_color(). This was breaking the 'fbo-drawbuffers-none glClearBuffer' piglit test. The patch provides the bit mask to brw_blorp_clear_color() so it can limit clearing to the color buffers present in the mask. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76832 Reviewed-by: Eric Anholt <eric@anholt.net> Thanks, Iago! |
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.