softpipe: implement seamless cubemap support. (v1.1)
authorDave Airlie <airlied@gmail.com>
Tue, 11 Dec 2012 09:52:48 +0000 (19:52 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 12 Dec 2012 00:35:05 +0000 (10:35 +1000)
commit621259b3de1f15c879620bbf17764fd8a27ae6f5
tree72c72aaf268c0e54ed74a4af994a7d59e21ebdb4
parent3392f2fbcfe8c82b764a064359999866c97ba551
softpipe: implement seamless cubemap support. (v1.1)

This adds seamless sampling for cubemap boundaries if requested.

The corner case averaging is messy but seems like it should be spec
compliant.

The face direction stuff is also a bit messy, I've no idea if that could
or should be simpler, or even if all my directions are fully correct!

v1.1: update comments, drop unneeded seamless calls for nearest, fix
if statement layout.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/softpipe/sp_screen.c
src/gallium/drivers/softpipe/sp_tex_sample.c