On 26.05.2009 01:11, Jimmy Rentz wrote:
> Hello,
> Why is that gallium overwrites any existing mipmap mag/min
> filters when aniso is set?
> Here is the relevant bits from
> mesa/src/mesa/state_tracker/st_atom_sampler.c (commit
> 98ae83d5cc73b61826823c915b5c59746c2e85c7)
> ...
> if (sampler->max_anisotropy > 1.0) {
> sampler->min_img_filter = PIPE_TEX_FILTER_ANISO;
> sampler->mag_img_filter = PIPE_TEX_FILTER_ANISO;
> }
>
> This assumes that all hardware use a different filter
> for mipmap versus ansio. This is not the case for nvidia
> since ansio is set separately from the mipmap min/mag
> filters.
I don't think I understand your question. This code doesn't touch the
mip filter just min/mag. And i can't see how specifying for instance
tex_filter_nearest and tex_filter_aniso at the same time would make
sense, aniso inherently replaces min and mag filters.
Roland
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev