[Mesa-dev] [PATCH] i965: glClearBuffer() should only clear a single buffer.

Eric Anholt eric at anholt.net
Mon Apr 7 10:14:27 PDT 2014


Iago Toral Quiroga <itoral at igalia.com> writes:

> 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 at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140407/feffa0ef/attachment.sig>


More information about the mesa-dev mailing list