softpipe: fix using optimized filter function
authorRoland Scheidegger <sroland@vmware.com>
Wed, 6 Feb 2013 17:29:55 +0000 (09:29 -0800)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Wed, 13 Feb 2013 20:48:37 +0000 (21:48 +0100)
commit71e3ee38aca50b6954cc7e341aa082797741f02d
tree3899a2b6331d8d4b9945819f425e0de1de74bdad
parentfdfb299c22318ad54520de86fade5754848f8366
softpipe: fix using optimized filter function

This optimized filter (when using repeat wrap modes,
linear min/mag/mip filters, pot textures) only applies to 2d textures,
but nothing prevented it from being used for other textures (likely
leading to very bogus sample results).

Note: This is a candidate for the 9.0 branch.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
(cherry picked from commit 66b6d5121475ecdd6b76ff660e28dfa6cc3f727c)
src/gallium/drivers/softpipe/sp_tex_sample.c