[Mesa-dev] Bicubic filtering in mesa?

Alex Deucher alexdeucher at gmail.com
Mon Feb 7 07:16:24 PST 2011


On Sat, Feb 5, 2011 at 4:35 PM, Carl-Philip Haensch
<Carl-Philip.Haensch at mailbox.tu-dresden.de> wrote:
> Hi,
>
> the r600 has capabilities of bicubic texture filtering. But I found no
> constant in mesa that would force bicubic filtering, so I only added a todo
> into the r600 driver to add the case once if I know which mesa constant
> stands for it.

FWIW, the bicubic filtering in the samplers is about as complex to set
up as writing a bicubic shader filter (lots of filter kernel params to
calculate and load).  Also, the feature was removed in 7xx, so it's
only applicable to 6xx asics.

Alex

>
> --- a/src/gallium/drivers/r600/r600_state_inlines.h
> +++ b/src/gallium/drivers/r600/r600_state_inlines.h
> @@ -176,6 +176,7 @@ static inline unsigned r600_tex_filter(unsigned filter)
>                return V_03C000_SQ_TEX_XY_FILTER_POINT;
>        case PIPE_TEX_FILTER_LINEAR:
>                return V_03C000_SQ_TEX_XY_FILTER_BILINEAR;
> +       // ToDo: Bicubic V_03C000_SQ_TEX_XY_FILTER_BICUBIC
>        }
>  }
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>


More information about the mesa-dev mailing list