<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Aug 25, 2016 at 10:15 PM, Jason Ekstrand <span dir="ltr"><<a href="mailto:jason@jlekstrand.net" target="_blank">jason@jlekstrand.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5"><p dir="ltr"></p>
<p dir="ltr">On Aug 25, 2016 9:41 PM, "Pohjolainen, Topi" <<a href="mailto:topi.pohjolainen@gmail.com" target="_blank">topi.pohjolainen@gmail.com</a>> wrote:<br>
><br>
> On Thu, Aug 25, 2016 at 02:34:37PM -0700, Jason Ekstrand wrote:<br>
> > On Thu, Aug 25, 2016 at 1:10 AM, Pohjolainen, Topi<br>
> > <[1]<a href="mailto:topi.pohjolainen@gmail.com" target="_blank">topi.pohjolainen@gmail.com</a><wbr>> wrote:<br>
> ><br>
> > On Fri, Aug 19, 2016 at 09:55:37AM -0700, Jason Ekstrand wrote:<br>
> > > This little patch series is even more blorp code churn. The end<br>
> > objective<br>
> > > is in patch 31 which pulls blorp into its own directory completely<br>
> > separate<br>
> > > from the i965 dri driver.<br>
> > ><br>
> > > Jason Ekstrand (31):<br>
> > >Â Â i965/blorp: Add a blorp_context struct and init/finish funcs<br>
> > >Â Â i965/blorp: Add an internal shader cache<br>
> > >Â Â i965/blorp/genX: Add helpers for allocating various bits of state<br>
> > >Â Â i965/blorp/genX: Pull emit_3dstate_multisample into a helper<br>
> > >Â Â i965/gen6: Refactor gen6_upload_urb<br>
> > >Â Â i965/blorp: Use gen6_upload_urb<br>
> > >Â Â i965/blorp/genX: Move emit_urb_config into another helper<br>
> > >Â Â i965/blorp: Add driver mocs settings to the context<br>
> > >Â Â i965/blorp: Pull emit_surface_state into genX_blorp_exec.c<br>
> > >Â Â i965/blorp: Use blorp_address in brw_blorp_surface instead of<br>
> > >Â Â Â bo+offset<br>
> > >Â Â i965/blorp/genX: Add a blorp_surface_reloc helper<br>
> > >Â Â i965/blorp: Shorten binding table index enum names<br>
> > >Â Â i965/blorp: Use BT_INDEX enums for setting up the binding table<br>
> > >Â Â i965/blorp: Add a helper for allocating binding tables and<br>
> > surface<br>
> > >Â Â Â states<br>
> > >Â Â i965/blorp/exec: Refactor to use blorp_context and a void *batch<br>
> > >Â Â i965/blorp: Pull the guts of blorp_exec into a driver-agnostic<br>
> > header<br>
> > >Â Â i965/blorp: Move the guts of brw_blorp_exec into<br>
> > genX_blorp_exec.c<br>
> > >Â Â i965/blorp: Add an "exec" function pointer to blorp_context<br>
> > >Â Â i965/meta_util: Take an isl_device in get_fast_clear_rect<br>
> > >Â Â i965/blorp: Take a blorp_context in compile_nir_shader<br>
> > >Â Â i965/blorp: Get rid of brw_context<br>
> > >Â Â i965/blorp: Make blorp_addres::buffer a void*<br>
> > >Â Â i965/blorp: Add a fast_clear_op enum<br>
> > >Â Â i965: Move the hiz_op enum to blorp<br>
> > >Â Â i965/blorp: Get rid of most brw and mesa includes<br>
> > >Â Â i965: Roll brw_get_ccs_resolve_rect into blorp_ccs_resolve<br>
> > >Â Â i965: Move get_fast_clear_rect to blorp_clear.c<br>
> > >Â Â i965: Move the type_size function declartaions to brw_nir.h<br>
> > >Â Â i965/blorp: Use isl_format_get_depth_format for setting depth<br>
> > formats<br>
> > >Â Â i965/blorp: Remove the remaining brw prefixes from the blorp.h<br>
> > API<br>
> > >Â Â i965: Move blorp into src/intel/blorp<br>
> ><br>
> > Patches 28-31 also look good to me and are:<br>
> > Reviewed-by: Topi Pohjolainen <[2]<a href="mailto:topi.pohjolainen@intel.com" target="_blank">topi.pohjolainen@intel.com</a><wbr>><br>
> > We discussed a few things offline. Among other things we agreed to<br>
> > add as a<br>
> > follow-up a word or two about the low 12 bits of aux address in<br>
> > patch 11<br>
> > giving rational to the delta argument of blorp_surface_reloc(). In<br>
> > any case<br>
> > I think all patches are now reviewed.<br>
> ><br>
> > I'm still missing a couple. You can find everything here:<br>
> > [3]<a href="https://cgit.freedesktop.org/~jekstrand/mesa/log/?h=wip/blorp-vulkan" target="_blank">https://cgit.freedesktop.<wbr>org/~jekstrand/mesa/log/?h=<wbr>wip/blorp-vulkan</a><br>
> > In particular, a review of the first patch to flatten makefiles would<br>
> > be nice.<br>
><br>
> Right, that wasn't in the series in the list and I missed it. It looks good<br>
> though:<br>
><br>
> Reviewed-by: Topi Pohjolainen <<a href="mailto:topi.pohjolainen@intel.com" target="_blank">topi.pohjolainen@intel.com</a>><br>
><br>
> In the patch split from the original series "i965/blorp: Remove some i965-isms<br>
> from genX_blorp_exec.h" you still have the wm_prog_data::inputs_read type<br>
> change left in the other patch. It doesn't effect compilation or produced<br>
> binary, and therefore:<br>
><br>
> Reviewed-by: Topi Pohjolainen <<a href="mailto:topi.pohjolainen@intel.com" target="_blank">topi.pohjolainen@intel.com</a>><br></p></div></div></blockquote><div></div><div>Fixed and thanks.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5"><p dir="ltr">
><br>
> Then there is still left "i965/blorp: Use gen6_upload_urb" where I wasn't<br>
> 100% sure if the produced batch for gen6 remained the same as before. I'll<br>
> double check that.<br>
><br>
> Did I miss any other?</p></div></div></blockquote><div>There's another one in there "i965: Move type_size function declarations to brw_nir.h" that I don't know if it ever landed on the list.<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5">
</div></div><p dir="ltr">Not that I know of off hand.</p>
<p dir="ltr">One quick note (to myself as much as anyone): before this can land I need to go back and rework things a bit so that the shader upload API is a cache API. Apparently, the i965 driver will, on occasion, drop all it's shaders on the floor and recompile them all. When this happens, blorp needs to recompile too. In order to handle this, we need to expose the shader caching API directly to the blorp interface rather than the simplified upload_shader function pointer. The little cache I wrote will have to be part of the anv blorp implementation.<br>
</p>
</blockquote></div>I'm about to send a patch for this out. It replaces patch 1.<br></div></div>