gallium: add API for setting window rectangles
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 11 Jun 2016 15:35:01 +0000 (11:35 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 18 Jun 2016 16:59:12 +0000 (12:59 -0400)
commit82fab73246810332bb238e96335ba81d4d2182d6
treeaa3af2ac815d60acd7cba5086d651ac302361982
parentd68c1e2ac28bbf0ac6259e9619fb73958fc598b8
gallium: add API for setting window rectangles

Window rectangles apply to all framebuffer operations, either in
inclusive or exclusive mode. They may also be specified as part of a
blit operation.

In exclusive mode, any fragment inside any of the specified rectangles
will be discarded.

In inclusive mode, any fragment outside every rectangle will be
discarded.

The no-op state is to have 0 rectangles in exclusive mode.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/docs/source/context.rst
src/gallium/include/pipe/p_context.h
src/gallium/include/pipe/p_state.h