Re: [Mesa-dev] [PATCH] __DRIimage: Add formats with implied swizzling

2012-07-18 Thread Kristian Høgsberg
On Wed, Jul 18, 2012 at 12:02 PM, Eric Anholt wrote: > Kristian Høgsberg writes: > >> When we sample U and V from YUYV buffers, U and V ends up in G and A >> in the shader. Instead of pushing this to the application, just swizzle >> U and V to R and G and set B to 0 and A to 1. > > Those fields

Re: [Mesa-dev] [PATCH] __DRIimage: Add formats with implied swizzling

2012-07-18 Thread Eric Anholt
Kristian Høgsberg writes: > When we sample U and V from YUYV buffers, U and V ends up in G and A > in the shader. Instead of pushing this to the application, just swizzle > U and V to R and G and set B to 0 and A to 1. Those fields are controlled by EXT_texture_swizzle. We probably shouldn't m

[Mesa-dev] [PATCH] __DRIimage: Add formats with implied swizzling

2012-07-17 Thread Kristian Høgsberg
When we sample U and V from YUYV buffers, U and V ends up in G and A in the shader. Instead of pushing this to the application, just swizzle U and V to R and G and set B to 0 and A to 1. --- docs/WL_bind_wayland_display.spec| 24 +++- include/EGL/eglmesaext.h