<div dir="ltr"><div>I couldn't get your patches to apply on top of master. Can you rebase your v2 on top of master? Or can you send a link to your repo so I can cherry-pick the commits?<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 17, 2014 at 11:40 AM, Brian Paul <span dir="ltr"><<a href="mailto:brianp@vmware.com" target="_blank">brianp@vmware.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 12/16/2014 12:56 PM, Laura Ekstrand wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
<br>
On Sat, Dec 13, 2014 at 6:42 AM, Brian Paul <<a href="mailto:brianp@vmware.com" target="_blank">brianp@vmware.com</a><br></span><div><div class="h5">
<mailto:<a href="mailto:brianp@vmware.com" target="_blank">brianp@vmware.com</a>>> wrote:<br>
<br>
In preparation for getting texture sub images.<br>
---<br>
src/mesa/drivers/common/meta.c | 88<br>
+++++++++++++++++---------<br>
src/mesa/drivers/common/meta.h | 4 ++<br>
src/mesa/drivers/common/meta_<u></u>generate_mipmap.c | 4 +-<br>
3 files changed, 64 insertions(+), 32 deletions(-)<br>
<br>
diff --git a/src/mesa/drivers/common/<u></u>meta.c<br>
b/src/mesa/drivers/common/<u></u>meta.c<br>
index 87532c1..a84e512 100644<br>
--- a/src/mesa/drivers/common/<u></u>meta.c<br>
+++ b/src/mesa/drivers/common/<u></u>meta.c<br>
@@ -2450,30 +2450,53 @@ _mesa_meta_Bitmap(struct gl_context *ctx,<br>
<br>
/**<br>
* Compute the texture coordinates for the four vertices of a quad for<br>
- * drawing a 2D texture image or slice of a cube/3D texture.<br>
+ * drawing a 2D texture image or slice of a cube/3D texture. The<br>
offset<br>
+ * and width, height specify a sub-region of the 2D image.<br>
+ *<br>
* \param faceTarget GL_TEXTURE_1D/2D/3D or cube face name<br>
* \param slice slice of a 1D/2D array texture or 3D texture<br>
- * \param width width of the texture image<br>
- * \param height height of the texture image<br>
+ * \param xoffset X position of sub texture<br>
+ * \param yoffset Y position of sub texture<br>
+ * \param width width of the sub texture image<br>
+ * \param height height of the sub texture image<br>
+ * \param total_width total width of the texture image<br>
+ * \param total_height total height of the texture image<br>
+ * \param total_depth total depth of the texture image<br>
* \param coords0/1/2/3 returns the computed texcoords<br>
*/<br>
<br>
<br>
I'm confused. Here you take the args width, height, then total_width,<br>
total_height, and total_depth. But in the definition of<br>
_mesa_meta_setup_texture_<u></u>coords in meta.h, you have width, height,<br>
depth, total_width, and total_height.<br>
</div></div></blockquote>
<br>
Typo. I've fixed the meta.h declaration.<span class="HOEnZb"><font color="#888888"><br>
<br>
-Brian<br>
<br>
<br>
</font></span></blockquote></div></div>