[Mesa-dev] [PATCH] Add support for GL_EXT_unpack_subimage on GLES2

2012-03-21 Thread Neil Roberts
This extension just permits GL_UNPACK_ROW_LENGTH, GL_UNPACK_SKIP_ROWS and GL_UNPACK_SKIP_PIXELS to be passed to glPixelStore on GLES2 so it is trivial to implement. --- src/mesa/main/APIspec.xml | 26 +- src/mesa/main/extensions.c |1 + 2 files changed, 22 insertions

Re: [Mesa-dev] [PATCH] Add support for GL_EXT_unpack_subimage on GLES2

2012-03-22 Thread Neil Roberts
On Thu, 22 Mar 2012 10:56:09 -0700, Ian Romanick wrote: > I'm not a fan of the wrappers generated from APIspec.xml. It allowed > quick implementation of the extra enum rejection required by ES, but > it's a real hassle. I don't track the Mesa development that much but I'm not sure what you're

[Mesa-dev] [PATCH] Add a test for GL_EXT_unpack_subimage on GLES2

2012-03-26 Thread Neil Roberts
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE

[Mesa-dev] [PATCH] wayland-drm: Implement wl_buffer.damage in old versions of Wayland

2012-04-11 Thread Neil Roberts
Commit 272bc48976 removed the damage implementation for the wl_buffer_interface because that has been removed from git master of Wayland. However this breaks building with the 0.85 branch of Wayland because it would end up initialising the struct incorrectly. For the time being it's quite convenie

Re: [Mesa-dev] [PATCH] intel: Fix intel_texsubimage_tiled_memcpy to skip GL_EXT_unpack_subimage case

2012-10-05 Thread Neil Roberts
Rob Bradford writes: > + packing->RowLength != width) I wonder if this is a bit overzealous and we should change it to accept packing->RowLength==0 as well. Setting the row length to zero is equivalent to setting it to the width of the data. It could be that Chrome leaves it at zero and in

Re: [Mesa-dev] [PATCH 1/2] mesa: Add functions _mesa_[un]pack_is_default()

2012-10-12 Thread Neil Roberts
Chad Versace writes: > +bool > +_mesa_pack_is_default(struct gl_context *ctx) > +{ > + return memcmp(&ctx->Pack, &ctx->DefaultPacking, > + sizeof(struct gl_pixelstore_attrib)) == 0; > +} It seems like a shame that this wouldn't catch the cases where the row length and alignment

<    1   2   3   4   5   6