[Mesa-dev] [PATCH] i965: Reupload push and pull constants when we get new shader image unit state.

Kenneth Graunke kenneth at whitecape.org
Sat Feb 13 04:26:11 UTC 2016


On Friday, February 12, 2016 12:20:15 PM PST Francisco Jerez wrote:
> Fixes several of the
> "dEQP-GLES31.functional.image_load_store*load_store*single_layer" dEQP
> tests that use image formats we implement using untyped surface
> messages.
> 
> Cc: mesa-stable at lists.freedesktop.org
> Tested-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
>  src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> 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 5ab2f7f..8b12a48 100644
> --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
> +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
> @@ -1340,6 +1340,11 @@ brw_upload_image_surfaces(struct brw_context *brw,
>        }
>  
>        brw->ctx.NewDriverState |= BRW_NEW_SURFACES;
> +      /* This may have changed the image metadata dependent on the context
> +       * image unit state and passed to the program as uniforms, make sure
> +       * that push and pull constants are reuploaded.
> +       */
> +      brw->NewGLState |= _NEW_PROGRAM_CONSTANTS;
>     }
>  }
>  
> 

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160212/01fb7964/attachment.sig>


More information about the mesa-dev mailing list