OSDN Git Service

st/mesa: Record shader access qualifiers for images
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 2 Oct 2018 03:16:59 +0000 (22:16 -0500)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 23 Oct 2018 09:36:24 +0000 (02:36 -0700)
commit8b626a22b24089edf90cb1b06e5b1895bb36c61b
tree7e81c79266e1c21a35c7ac8134fa6e9de055e157
parentbf441d22a7917f38cb10b66c0a680190f636ee4e
st/mesa: Record shader access qualifiers for images

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.

v2: (by Kenneth Graunke, incorporating feedback from Marek Olšák)
 - Reduce both access and shader_access to uint16_t to avoid making
   the pipe_image_view structure larger.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/include/pipe/p_state.h
src/mesa/state_tracker/st_atom_image.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_texture.c
src/mesa/state_tracker/st_texture.h