softpipe: fix using optimized filter function
authorRoland Scheidegger <sroland@vmware.com>
Wed, 6 Feb 2013 17:29:55 +0000 (09:29 -0800)
committerRoland Scheidegger <sroland@vmware.com>
Sat, 9 Feb 2013 00:32:30 +0000 (16:32 -0800)
commit66b6d5121475ecdd6b76ff660e28dfa6cc3f727c
tree20eaaa168d80ecb347bd83b9f9e4a17936f48397
parent49f8825c49871ca956c7ed21b096f3835311f57e
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>
src/gallium/drivers/softpipe/sp_tex_sample.c