diff options
author | Samuel Pitoiset <[email protected]> | 2018-10-05 14:39:01 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-10-05 18:13:25 +0200 |
commit | a1bc1523408a305b14a8c297ea93a28bb12cee5d (patch) | |
tree | 1e0bf1ff1904fc0b51436fe2498d53a17458df1c /src | |
parent | 5bd03d02c15359b832db3140bcd3f7fb6be9a987 (diff) |
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 <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/spirv/vtn_variables.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |