Module: Mesa Branch: main Commit: 88acbcadbb27169eaf171465b753b10c49eec46e URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=88acbcadbb27169eaf171465b753b10c49eec46e
Author: Pedro J. Estébanez <[email protected]> Date: Tue Apr 4 20:26:36 2023 +0200 spirv: Assume input attachments are read-only Reviewed-by: Jesse Natalie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22289> --- src/compiler/spirv/vtn_variables.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index 805831eb568..8db61c8e61a 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -1416,6 +1416,7 @@ var_decoration_cb(struct vtn_builder *b, struct vtn_value *val, int member, return; case SpvDecorationInputAttachmentIndex: vtn_var->input_attachment_index = dec->operands[0]; + vtn_var->access |= ACCESS_NON_WRITEABLE; return; case SpvDecorationPatch: vtn_var->var->data.patch = true;
