gallium/auxiliary: add contained and rect checks (v6)
authorChristoph Bumiller <christoph.bumiller@speed.at>
Mon, 17 Nov 2014 15:58:26 +0000 (16:58 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 18 Nov 2014 02:02:54 +0000 (02:02 +0000)
commit7d2573b5376bb4f9ce9a50e0b965e06032b135a9
treec0aacc067ef66163991650fdba3a1b2413cef2d1
parentcb49132166faf4c8668b09a300bd9e3877327a33
gallium/auxiliary: add contained and rect checks (v6)

v3: thanks to Brian, improved coding style, also glennk helped spot few
things (unsigned -> int, two constify)
v4: thanks Ilia improved function, dropped u_box_clip_3d
v5: incorporated rest of Gregor proposed changes,clean ups
v6: u_box_clip_2d simplify proposed by Ilia Mirkin

Acked-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: David Heidelberg <david@ixit.cz>
src/gallium/auxiliary/util/u_box.h
src/gallium/auxiliary/util/u_rect.h