Re: [Mesa-dev] [PATCH] st/mesa: fix the texture format in st_context_teximage

2011-07-19 Thread Stéphane Marchesin
On Mon, Jul 18, 2011 at 07:31, Fredrik Höglund wrote: > Commit 1a339b6c71ebab6e1a64f05b2e133022d3bbcd15 made > st_ChooseTextureFormat map GL_RGBA with type GL_UNSIGNED_BYTE > to PIPE_FORMAT_A8B8G8R8_UNORM. > > The image format for ARGB pixmaps is PIPE_FORMAT_B8G8R8A8_UNORM > however. This mismatc

[Mesa-dev] [PATCH] st/mesa: fix the texture format in st_context_teximage

2011-07-18 Thread Fredrik Höglund
Commit 1a339b6c71ebab6e1a64f05b2e133022d3bbcd15 made st_ChooseTextureFormat map GL_RGBA with type GL_UNSIGNED_BYTE to PIPE_FORMAT_A8B8G8R8_UNORM. The image format for ARGB pixmaps is PIPE_FORMAT_B8G8R8A8_UNORM however. This mismatch caused the texture to be recreated in st_finalize_texture. NOTE: