<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 29, 2016 at 11:39 PM, Pohjolainen, Topi <span dir="ltr"><<a href="mailto:topi.pohjolainen@gmail.com" target="_blank">topi.pohjolainen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Aug 29, 2016 at 09:00:33AM -0700, Jason Ekstrand wrote:<br>
> Topi asked to have the prefix removed because there's nothing gen7 about<br>
> it. However, now that everything is in a single file, there is no good<br>
> reason to have it split out into a helper function anyway. Let's just put<br>
> the contents in emit_urb_config and call it a day.<br>
<br>
</span>Thanks!<br>
<br>
Reviewed-by: Topi Pohjolainen <<a href="mailto:topi.pohjolainen@intel.com">topi.pohjolainen@intel.com</a>><br></blockquote><div><br></div><div>Thanks!<br><br></div><div>Were there any other fixups you wanted me to do?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
> ---<br>
> src/intel/blorp/blorp_genX_<wbr>exec.h | 41 +++++++++++++++++-------------<wbr>---------<br>
> 1 file changed, 18 insertions(+), 23 deletions(-)<br>
><br>
> diff --git a/src/intel/blorp/blorp_genX_<wbr>exec.h b/src/intel/blorp/blorp_genX_<wbr>exec.h<br>
> index f44076e..a39c1ae 100644<br>
> --- a/src/intel/blorp/blorp_genX_<wbr>exec.h<br>
> +++ b/src/intel/blorp/blorp_genX_<wbr>exec.h<br>
> @@ -113,28 +113,6 @@ __gen_combine_address(struct blorp_batch *batch, void *location,<br>
> _dw + 1; /* Array starts at dw[1] */ \<br>
> })<br>
><br>
> -/* Once vertex fetcher has written full VUE entries with complete<br>
> - * header the space requirement is as follows per vertex (in bytes):<br>
> - *<br>
> - * Header Position Program constants<br>
> - * +--------+------------+-------<wbr>------------+<br>
> - * | 16 | 16 | n x 16 |<br>
> - * +--------+------------+-------<wbr>------------+<br>
> - *<br>
> - * where 'n' stands for number of varying inputs expressed as vec4s.<br>
> - *<br>
> - * The URB size is in turn expressed in 64 bytes (512 bits).<br>
> - */<br>
> -static inline unsigned<br>
> -gen7_blorp_get_vs_entry_size(<wbr>const struct blorp_params *params)<br>
> -{<br>
> - const unsigned num_varyings =<br>
> - params->wm_prog_data ? params->wm_prog_data->num_<wbr>varying_inputs : 0;<br>
> - const unsigned total_needed = 16 + 16 + num_varyings * 16;<br>
> -<br>
> - return DIV_ROUND_UP(total_needed, 64);<br>
> -}<br>
> -<br>
> /* 3DSTATE_URB<br>
> * 3DSTATE_URB_VS<br>
> * 3DSTATE_URB_HS<br>
> @@ -166,7 +144,24 @@ static void<br>
> emit_urb_config(struct blorp_batch *batch,<br>
> const struct blorp_params *params)<br>
> {<br>
> - blorp_emit_urb_config(batch, gen7_blorp_get_vs_entry_size(<wbr>params));<br>
> + /* Once vertex fetcher has written full VUE entries with complete<br>
> + * header the space requirement is as follows per vertex (in bytes):<br>
> + *<br>
> + * Header Position Program constants<br>
> + * +--------+------------+-------<wbr>------------+<br>
> + * | 16 | 16 | n x 16 |<br>
> + * +--------+------------+-------<wbr>------------+<br>
> + *<br>
> + * where 'n' stands for number of varying inputs expressed as vec4s.<br>
> + */<br>
> + const unsigned num_varyings =<br>
> + params->wm_prog_data ? params->wm_prog_data->num_<wbr>varying_inputs : 0;<br>
> + const unsigned total_needed = 16 + 16 + num_varyings * 16;<br>
> +<br>
> + /* The URB size is expressed in units of 64 bytes (512 bits) */<br>
> + const unsigned vs_entry_size = DIV_ROUND_UP(total_needed, 64)<br>
> +<br>
> + blorp_emit_urb_config(batch, vs_entry_size);<br>
> }<br>
><br>
> static void<br>
> --<br>
> 2.5.0.400.gff86faf<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org">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/<wbr>mailman/listinfo/mesa-dev</a><br>
</blockquote></div><br></div></div>