[Mesa-dev] [PATCH V3 01/30] mesa: Prefer non-swizzled formats for most sized internalformats

Brian Paul brianp at vmware.com
Wed Apr 2 07:34:39 PDT 2014


On 04/02/2014 02:04 AM, Chris Forbes wrote:
> These formats can be cast to others (with different component types or
> sizes) via ARB_texture_view or ARB_shader_image_load_store. We want
> them to be laid out consistently so that we can just reinterpret the
> memory with a different format.
>
> In V1, this was done conditionally on a 'prefer_no_swizzle' flag which
> was set in TexStorage/TextureView paths, but we need the same behavior
> for ARB_shader_image_load_store (which also works with images created
> via TexImage, so we don't want it to be conditional.
>
> Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
> ---
>   src/mesa/main/texformat.c | 22 ++++++++++++++++++----
>   1 file changed, 18 insertions(+), 4 deletions(-)
>

Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the mesa-dev mailing list