[Mesa-dev] [PATCH] st/mesa: optionally apply texture swizzle to border color
Alex Deucher
alexdeucher at gmail.com
Sun Apr 14 14:51:17 PDT 2013
On Sun, Apr 14, 2013 at 12:55 PM, Marek Olšák <maraeo at gmail.com> wrote:
> I think the hardware doesn't care what the border color type is. I think the
> border color is "fetched" from the sampler state, which should be a memcpy.
> If no texels are fetched from the texture, the border color is copied to the
> destination register. If I set the texture hardware format to "invalid", the
> texture fetch instructions always return the border color, which suggests
> the hardware really does not care about the type.
The border color is definitely stored are part of the sampler state.
Overrides (BORDER_COLOR_TYPE field) and format conversion are applied
after the the state is fetched from the sampler.
Alex
>
> OpenGL also doesn't care what the border color type is after it is set,
> because the state is a union type.
>
> Marek
>
More information about the mesa-dev
mailing list