From a1bc1523408a305b14a8c297ea93a28bb12cee5d Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 5 Oct 2018 14:39:01 +0200 Subject: [PATCH] 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 --- 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 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; -- 2.30.2