mesa: implement GetMultisamplefv
authorChris Forbes <chrisf@ijw.co.nz>
Sun, 25 Nov 2012 07:23:32 +0000 (20:23 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Fri, 1 Mar 2013 22:35:13 +0000 (11:35 +1300)
commit7c1017e292b2d27af6d7e15db874f50223d73e15
tree0ee974a2c315b78299c50d7192635045ef4950c7
parentabb5429537b4e7f42bcdd744ed7aaaf35b719cf4
mesa: implement GetMultisamplefv

Actual sample locations deferred to a driverfunc since only the driver
really knows where they will be.

V2: - pass the draw buffer to the driverfunc; don't fallback to pixel
      center if driverfunc is missing.
    - rename GetSampleLocation to GetSamplePosition
    - invert y sample position for winsys FBOs, at Paul's suggestion

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/common/driverfuncs.c
src/mesa/main/dd.h
src/mesa/main/multisample.c