<p dir="ltr"><br>
On Oct 7, 2015 3:36 PM, "Kristian Høgsberg" <<a href="mailto:krh@bitplanet.net">krh@bitplanet.net</a>> wrote:<br>
><br>
> On Wed, Oct 7, 2015 at 3:11 PM, Matt Turner <<a href="mailto:mattst88@gmail.com">mattst88@gmail.com</a>> wrote:<br>
> > On Wed, Oct 7, 2015 at 7:11 AM, Kristian Høgsberg Kristensen<br>
> > <<a href="mailto:krh@bitplanet.net">krh@bitplanet.net</a>> wrote:<br>
> >> Signed-off-by: Kristian Høgsberg Kristensen <<a href="mailto:krh@bitplanet.net">krh@bitplanet.net</a>><br>
> >> ---<br>
> >> src/mesa/drivers/dri/i965/brw_fs.cpp | 5 +++--<br>
> >> 1 file changed, 3 insertions(+), 2 deletions(-)<br>
> >><br>
> >> diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp<br>
> >> index 65c3628..b79b4a4 100644<br>
> >> --- a/src/mesa/drivers/dri/i965/brw_fs.cpp<br>
> >> +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp<br>
> >> @@ -5276,6 +5276,7 @@ brw_cs_emit(struct brw_context *brw,<br>
> >> prog_data->local_size[2] = cp->LocalSize[2];<br>
> >> unsigned local_workgroup_size =<br>
> >> cp->LocalSize[0] * cp->LocalSize[1] * cp->LocalSize[2];<br>
> >> + unsigned max_cs_threads = brw->intelScreen->compiler->devinfo->max_cs_threads;<br>
> ><br>
> > I'm not following how this helps? Seems like you want to just pass in<br>
> > devinfo or something?<br>
><br>
> We want to pass in just brw_compiler eventually. At that point<br>
> brw_context won't be available. Jason will do that next, and I guess<br>
> you could argue that this patch belongs in that series.</p>
<p dir="ltr">I would tend to agree with Matt. This patch doesn't really do anything on its own and I plan on doing it "for real" soon enough that "other callers" won't have to wait long. Let's put this off until we can do it "the right way".<br>
--Jason</p>
<p dir="ltr">> However, this one occurrence is the only place the compiler accesses<br>
> devinfo values through brw_context and getting rid of it means callers<br>
> without a real brw_context have to fake a little less.<br>
><br>
> Kristian<br>
> _______________________________________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</p>