From: Samuel Pitoiset Date: Fri, 5 Oct 2018 12:39:01 +0000 (+0200) Subject: spirv: mark variables decorated with XfbBuffer as always active X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a1bc1523408a305b14a8c297ea93a28bb12cee5d;p=mesa.git spirv: mark variables decorated with XfbBuffer as always active Otherwise, they are removed during NIR linking or in some lowering passes. Signed-off-by: Samuel Pitoiset Reviewed-by: Jason Ekstrand --- diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index 358ff4bef7a..636fdb8689a 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -1326,6 +1326,7 @@ apply_var_decoration(struct vtn_builder *b, case SpvDecorationXfbBuffer: var_data->explicit_xfb_buffer = true; var_data->xfb_buffer = dec->literals[0]; + var_data->always_active_io = true; break; case SpvDecorationXfbStride: var_data->explicit_xfb_stride = true;