gallium: remove PIPE_TEX_FILTER_ANISO
authorLuca Barbieri <luca@luca-barbieri.com>
Wed, 6 Jan 2010 10:35:47 +0000 (10:35 +0000)
committerKeith Whitwell <keithw@vmware.com>
Wed, 6 Jan 2010 10:35:47 +0000 (10:35 +0000)
commitf02347374819a9b145a3e26c625709aea0c6f61b
treeb10aeef5dad623aa3c2afec070e601b68e2199ce
parenta6975507adb12e2147ede43224b2e21b4e7fc3ae
gallium: remove PIPE_TEX_FILTER_ANISO

This patch removes PIPE_TEX_FILTER_ANISO.

Anisotropic filtering is enabled if and only if max_anisotropy > 1.0.
Values between 0.0 and 1.0, inclusive, of max_anisotropy are to be
considered equivalent, and meaning to turn off anisotropic filtering.

This approach has the small drawback of eliminating the possibility of
enabling anisotropic filter on either minification or magnification
separately, which Radeon hardware seems to support, is currently
support by Gallium but not exposed to OpenGL.  If this is actually
useful it could be handled by splitting max_anisotropy in two values
and adding an appropriate OpenGL extension.

NOTE: some fiddling & reformatting by keithw to get this patch to
apply.  Hopefully nothing broken in the process.
13 files changed:
src/gallium/auxiliary/util/u_debug_dump.c
src/gallium/drivers/cell/spu/spu_command.c
src/gallium/drivers/i915/i915_state.c
src/gallium/drivers/i965/brw_pipe_sampler.c
src/gallium/drivers/llvmpipe/lp_bld_sample_soa.c
src/gallium/drivers/llvmpipe/lp_tex_sample_c.c
src/gallium/drivers/nv50/nv50_state.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_state_inlines.h
src/gallium/drivers/svga/svga_pipe_sampler.c
src/gallium/include/pipe/p_defines.h
src/gallium/state_trackers/vega/image.c
src/mesa/state_tracker/st_atom_sampler.c