<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, Aug 22, 2018 at 5:35 PM Fritz Koenig <<a href="mailto:frkoenig@google.com">frkoenig@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Aug 22, 2018 at 3:09 PM Jason Ekstrand <<a href="mailto:jason@jlekstrand.net" target="_blank">jason@jlekstrand.net</a>> wrote:<br>
><br>
> Two questions:<br>
><br>
> 1) Have you grep'd through the rest of i965 looking for Name to make sure you got them all?<br>
<br>
Yes, I have. I believe that I got them all now.<br>
<br>
> 2) Have you had a chance to run it through our CI system?<br>
<br>
No I haven't. How do I kick that off?<br></blockquote><div><br></div><div>It looks like Chad still has CI access; he can do it.</div><div><br></div><div>--Jason<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
><br>
> On Wed, Aug 22, 2018 at 5:00 PM Fritz Koenig <<a href="mailto:frkoenig@google.com" target="_blank">frkoenig@google.com</a>> wrote:<br>
>><br>
>> In the GL_MESA_framebuffer_flip_y implementation<br>
>> _mesa_is_winsys_fbo checks were replaced with<br>
>> FlipY checks. rb->Name is also used to determine<br>
>> if a buffer is winsys.<br>
>> ---<br>
>> src/mesa/drivers/dri/i965/brw_blorp.c | 20 +++++++++-----------<br>
>> src/mesa/drivers/dri/i965/intel_pixel_read.c | 4 ++--<br>
>> 2 files changed, 11 insertions(+), 13 deletions(-)<br>
>><br>
>> diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c<br>
>> index 7476cee43a..7c232f6ba9 100644<br>
>> --- a/src/mesa/drivers/dri/i965/brw_blorp.c<br>
>> +++ b/src/mesa/drivers/dri/i965/brw_blorp.c<br>
>> @@ -1220,12 +1220,12 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb,<br>
>><br>
>> x0 = fb->_Xmin;<br>
>> x1 = fb->_Xmax;<br>
>> - if (rb->Name != 0) {<br>
>> - y0 = fb->_Ymin;<br>
>> - y1 = fb->_Ymax;<br>
>> - } else {<br>
>> + if (fb->FlipY) {<br>
>> y0 = rb->Height - fb->_Ymax;<br>
>> y1 = rb->Height - fb->_Ymin;<br>
>> + } else {<br>
>> + y0 = fb->_Ymin;<br>
>> + y1 = fb->_Ymax;<br>
>> }<br>
>><br>
>> /* If the clear region is empty, just return. */<br>
>> @@ -1411,9 +1411,8 @@ brw_blorp_clear_depth_stencil(struct brw_context *brw,<br>
>> if (!(mask & (BUFFER_BITS_DEPTH_STENCIL)))<br>
>> return;<br>
>><br>
>> - uint32_t x0, x1, y0, y1, rb_name, rb_height;<br>
>> + uint32_t x0, x1, y0, y1, rb_height;<br>
>> if (depth_rb) {<br>
>> - rb_name = depth_rb->Name;<br>
>> rb_height = depth_rb->Height;<br>
>> if (stencil_rb) {<br>
>> assert(depth_rb->Width == stencil_rb->Width);<br>
>> @@ -1421,18 +1420,17 @@ brw_blorp_clear_depth_stencil(struct brw_context *brw,<br>
>> }<br>
>> } else {<br>
>> assert(stencil_rb);<br>
>> - rb_name = stencil_rb->Name;<br>
>> rb_height = stencil_rb->Height;<br>
>> }<br>
>><br>
>> x0 = fb->_Xmin;<br>
>> x1 = fb->_Xmax;<br>
>> - if (rb_name != 0) {<br>
>> - y0 = fb->_Ymin;<br>
>> - y1 = fb->_Ymax;<br>
>> - } else {<br>
>> + if (fb->FlipY) {<br>
>> y0 = rb_height - fb->_Ymax;<br>
>> y1 = rb_height - fb->_Ymin;<br>
>> + } else {<br>
>> + y0 = fb->_Ymin;<br>
>> + y1 = fb->_Ymax;<br>
>> }<br>
>><br>
>> /* If the clear region is empty, just return. */<br>
>> diff --git a/src/mesa/drivers/dri/i965/intel_pixel_read.c b/src/mesa/drivers/dri/i965/intel_pixel_read.c<br>
>> index 6ed7895bc7..8a90b207ad 100644<br>
>> --- a/src/mesa/drivers/dri/i965/intel_pixel_read.c<br>
>> +++ b/src/mesa/drivers/dri/i965/intel_pixel_read.c<br>
>> @@ -181,7 +181,7 @@ intel_readpixels_tiled_memcpy(struct gl_context * ctx,<br>
>> * tiled_to_linear a negative pitch so that it walks through the<br>
>> * client's data backwards as it walks through the renderbufer forwards.<br>
>> */<br>
>> - if (rb->Name == 0) {<br>
>> + if (ctx->ReadBuffer->FlipY) {<br>
>> yoffset = rb->Height - yoffset - height;<br>
>> pixels += (ptrdiff_t) (height - 1) * dst_pitch;<br>
>> dst_pitch = -dst_pitch;<br>
>> @@ -249,7 +249,7 @@ intel_readpixels_blorp(struct gl_context *ctx,<br>
>> return brw_blorp_download_miptree(brw, irb->mt, rb->Format, swizzle,<br>
>> irb->mt_level, x, y, irb->mt_layer,<br>
>> w, h, 1, GL_TEXTURE_2D, format, type,<br>
>> - rb->Name == 0, pixels, packing);<br>
>> + ctx->ReadBuffer->FlipY, pixels, packing);<br>
>> }<br>
>><br>
>> void<br>
>> --<br>
>> 2.18.0.1017.ga543ac7ca45-goog<br>
>><br>
>> _______________________________________________<br>
>> mesa-dev mailing list<br>
>> <a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
>> <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div></div>