diff options
author | Paul Berry <[email protected]> | 2013-11-19 13:31:20 -0800 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-11-21 18:16:34 -0800 |
commit | 068a073c1d4853b5c8f33efdeb481026f42e23a5 (patch) | |
tree | fc9e9592ff3401705c35cc98b1577f78b3c639b9 /doxygen/gallium.doxy | |
parent | 95140740ad1c6cd8a34002c307556f5c49a34589 (diff) |
meta: fix meta clear of layered framebuffers
From section 4.4.7 (Layered Framebuffers) of the GLSL 3.2 spec:
When the Clear or ClearBuffer* commands are used to clear a
layered framebuffer attachment, all layers of the attachment are
cleared.
This patch fixes meta clears to properly clear all layers of a layered
framebuffer attachment. We accomplish this by adding a geometry
shader to the meta clear program which sets gl_Layer to a uniform
value. When clearing a layered framebuffer, we execute in a loop,
setting the uniform to point to each layer in turn.
Cc: "10.0" <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'doxygen/gallium.doxy')
0 files changed, 0 insertions, 0 deletions