[Mesa-dev] [PATCH] spirv: mark variables decorated with XfbBuffer as always active

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri Oct 5 12:39:01 UTC 2018


Otherwise, they are removed during NIR linking or in some
lowering passes.

Cc: Jason Ekstrand <jason.ekstrand at intel.com>
Cc: Timothy Arceri <tarceri at itsqueeze.com>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 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.19.0



More information about the mesa-dev mailing list