[Mesa-dev] [PATCH 2/2] i965: Fix clears of layered framebuffers with mismatched layer counts.

Chris Forbes chrisf at ijw.co.nz
Thu Jan 9 18:19:05 PST 2014


I'm not convinced this is correct/safe, at least for the meta clear.

The GL 3.2 spec says, on page 221 (page 235 of the PDF):

  * If the number of layers of each attachment are not all identical, rendering
    will be limited to the smallest number of layers of any attachment.

And then in the description of layered framebuffers on page 240 (page
254 of the PDF):

   If the fragment’s layer number is negative, or greater than the
minimum number of layers of any attachment,
   the effects of the fragment on the framebuffer contents are undefined.

Blorp clears can obviously do whatever they like, since they don't
directly use the user's framebuffer configuration.


More information about the mesa-dev mailing list