[Mesa-dev] [PATCH 6/8] i965: Add missing BRW_CS_PROG_DATA to CS work group surface atom.

Jason Ekstrand jason at jlekstrand.net
Tue Oct 4 04:24:08 UTC 2016


1-6 are

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

I think Nanley had a typo fix on 1 that you should probably take care of.

On Wed, Sep 21, 2016 at 10:31 PM, Kenneth Graunke <kenneth at whitecape.org>
wrote:

> Cc: mesa-stable at lists.freedesktop.org
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
>  src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
> b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
> index 7b5e380..834e8f2 100644
> --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
> +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
> @@ -1840,10 +1840,12 @@ brw_upload_cs_work_groups_surface(struct
> brw_context *brw)
>     /* _NEW_PROGRAM */
>     struct gl_shader_program *prog =
>        ctx->_Shader->CurrentProgram[MESA_SHADER_COMPUTE];
> +   /* BRW_NEW_CS_PROG_DATA */
> +   const struct brw_cs_prog_data *cs_prog_data = brw->cs.prog_data;
>
> -   if (prog && brw->cs.prog_data->uses_num_work_groups) {
> +   if (prog && cs_prog_data->uses_num_work_groups) {
>        const unsigned surf_idx =
> -         brw->cs.prog_data->binding_table.work_groups_start;
> +         cs_prog_data->binding_table.work_groups_start;
>        uint32_t *surf_offset = &brw->cs.base.surf_offset[surf_idx];
>        drm_intel_bo *bo;
>        uint32_t bo_offset;
> @@ -1872,6 +1874,7 @@ brw_upload_cs_work_groups_surface(struct
> brw_context *brw)
>  const struct brw_tracked_state brw_cs_work_groups_surface = {
>     .dirty = {
>        .brw = BRW_NEW_BLORP |
> +             BRW_NEW_CS_PROG_DATA |
>               BRW_NEW_CS_WORK_GROUPS
>     },
>     .emit = brw_upload_cs_work_groups_surface,
> --
> 2.10.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161003/d064f066/attachment-0001.html>


More information about the mesa-dev mailing list