mesa: add accessor for effective stencil ref
authorChris Forbes <chrisf@ijw.co.nz>
Mon, 13 May 2013 09:17:29 +0000 (21:17 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Wed, 15 May 2013 10:00:55 +0000 (22:00 +1200)
commit38f65162af772af6d05627e3af6e8b7caf03ec8f
tree3e376839f3ec1623874d48a607582ac0068efaf7
parentc68424bac4a75cae8e605629ed62d345b694dc79
mesa: add accessor for effective stencil ref

Clamps the stencil reference value to the range representable in the
currently-bound draw framebuffer's stencil attachment.

V2: Add spec quote.

NOTE: This is a candidate for stable branches.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/stencil.h