On Mon, Oct 15, 2018 at 6:35 PM Kenneth Graunke <[email protected]>
wrote:

> From: Jason Ekstrand <[email protected]>
>
> They're not required to be the same as the access flag on the image
> unit.  For hardware that does shader image lowering based on the
> qualifier (Intel), it may be required for state setup.
> ---
>  src/gallium/include/pipe/p_state.h     |  1 +
>  src/mesa/state_tracker/st_atom_image.c | 27 ++++++++++++++++++++++----
>  src/mesa/state_tracker/st_cb_texture.c |  2 +-
>  src/mesa/state_tracker/st_texture.c    |  2 +-
>  src/mesa/state_tracker/st_texture.h    |  5 +++--
>  5 files changed, 29 insertions(+), 8 deletions(-)
>
> diff --git a/src/gallium/include/pipe/p_state.h
> b/src/gallium/include/pipe/p_state.h
> index a58d91fb3dd..331417b1d7f 100644
> --- a/src/gallium/include/pipe/p_state.h
> +++ b/src/gallium/include/pipe/p_state.h
> @@ -485,6 +485,7 @@ struct pipe_image_view
>     struct pipe_resource *resource; /**< resource into which this is a
> view  */
>     enum pipe_format format;      /**< typed PIPE_FORMAT_x */
>     unsigned access;              /**< PIPE_IMAGE_ACCESS_x */
> +   unsigned shader_access;       /**< PIPE_IMAGE_ACCESS_x */
>

Can you use uint16_t for both access masks? Other than that:

Reviewed-by: Marek Olšák <[email protected]>

Marek
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to