[Mesa-dev] [PATCH 10/12] i965/cs: Get max_cs_threads from brw_compiler devinfo

Matt Turner mattst88 at gmail.com
Wed Oct 7 15:11:10 PDT 2015


On Wed, Oct 7, 2015 at 7:11 AM, Kristian Høgsberg Kristensen
<krh at bitplanet.net> wrote:
> Signed-off-by: Kristian Høgsberg Kristensen <krh at bitplanet.net>
> ---
>  src/mesa/drivers/dri/i965/brw_fs.cpp | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
> index 65c3628..b79b4a4 100644
> --- a/src/mesa/drivers/dri/i965/brw_fs.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
> @@ -5276,6 +5276,7 @@ brw_cs_emit(struct brw_context *brw,
>     prog_data->local_size[2] = cp->LocalSize[2];
>     unsigned local_workgroup_size =
>        cp->LocalSize[0] * cp->LocalSize[1] * cp->LocalSize[2];
> +   unsigned max_cs_threads = brw->intelScreen->compiler->devinfo->max_cs_threads;

I'm not following how this helps? Seems like you want to just pass in
devinfo or something?


More information about the mesa-dev mailing list