[Mesa-dev] [PATCH] st/mesa: Record shader access qualifiers for images
Kenneth Graunke
kenneth at whitecape.org
Tue Oct 23 09:38:11 UTC 2018
On Friday, October 19, 2018 3:04:45 PM PDT Marek Olšák wrote:
> On Mon, Oct 15, 2018 at 6:35 PM Kenneth Graunke <kenneth at whitecape.org>
> wrote:
>
> > From: Jason Ekstrand <jason.ekstrand at intel.com>
> >
> > 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 <marek.olsak at amd.com>
>
> Marek
Good call, that way we don't make the struct any larger. I made that
changed and pushed the patch. Thanks for the review!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181023/f0b01ec5/attachment-0001.sig>
More information about the mesa-dev
mailing list