Re: [Mesa-dev] [PATCH v3] mesa: improve ARB_copy_image internal format compat check

2015-03-07 Thread Jason Ekstrand
On Sat, Mar 7, 2015 at 2:10 PM, Sean Burke wrote: > The memory layout of compatible internal formats may differ in bytes per > block, so TexFormat is not a reliable measure of compatibility. For > example, > GL_RGB8 and GL_RGB8UI are compatible formats, but GL_RGB8 may be laid out > in > memory a

[Mesa-dev] [PATCH v3] mesa: improve ARB_copy_image internal format compat check

2015-03-07 Thread Sean Burke
The memory layout of compatible internal formats may differ in bytes per block, so TexFormat is not a reliable measure of compatibility. For example, GL_RGB8 and GL_RGB8UI are compatible formats, but GL_RGB8 may be laid out in memory as B8G8R8X8. If GL_RGB8UI has a 3 byte-per-block memory layout, t