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

Chris Forbes chrisf at ijw.co.nz
Sun Apr 6 22:31:18 PDT 2014


I'll move this patch after 7/30 to avoid things being temporarily broken.

On Thu, Apr 3, 2014 at 3:34 AM, Brian Paul <brianp at vmware.com> wrote:
> 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>
>
> _______________________________________________
> 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