<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Feb 13, 2018 at 11:06 PM, Kenneth Graunke <span dir="ltr"><<a href="mailto:kenneth@whitecape.org" target="_blank">kenneth@whitecape.org</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 Monday, February 12, 2018 7:35:05 PM PST Jason Ekstrand wrote:<br>
> ---<br>
>  src/intel/vulkan/genX_<wbr>pipeline.c | 2 +-<br>
>  1 file changed, 1 insertion(+), 1 deletion(-)<br>
><br>
> diff --git a/src/intel/vulkan/genX_<wbr>pipeline.c b/src/intel/vulkan/genX_<wbr>pipeline.c<br>
> index 45ebe31..4aee9ec 100644<br>
> --- a/src/intel/vulkan/genX_<wbr>pipeline.c<br>
> +++ b/src/intel/vulkan/genX_<wbr>pipeline.c<br>
> @@ -1836,7 +1836,7 @@ compute_pipeline_create(<br>
>        .KernelStartPointer     = cs_bin->kernel.offset,<br>
><br>
>        .SamplerCount           = get_sampler_count(cs_bin),<br>
> -      .BindingTableEntryCount = get_binding_table_entry_count(<wbr>cs_bin),<br>
> +      .BindingTableEntryCount = 1 + MIN2(cs_bin->bind_map.surface_<wbr>count, 30),<br>
>        .BarrierEnable          = cs_prog_data->uses_barrier,<br>
>        .SharedLocalMemorySize  =<br>
>           encode_slm_size(GEN_GEN, cs_prog_data->base.total_<wbr>shared),<br>
><br>
<br>
</span>Shouldn't this be MIN2(cs_bin->bind_map.surface_<wbr>count, 31)?  It's simply<br>
a U5 value, not a U5-1 value...and says there are a maximum of 31 things<br>
that can be prefetched.<br></blockquote><div><br></div><div>I'm adding 1 for the indirect parameters buffer.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
While we're here, I don't understand why get_binding_table_entry_count<br>
is DIV_ROUND_UP(bin->bind_map.<wbr>surface_count, 32)...the docs for<br>
3DSTATE_VS indicate that it's simply a 0..255 value.<br>
</blockquote></div><br></div><div class="gmail_extra">Uh... I'm not sure.  I know I had a reason but maybe it's now bogus.<br></div></div>