diff options
author | Marek Olšák <marek.olsak@amd.com> | 2022-01-02 19:46:45 -0500 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-03-01 21:59:55 +0000 |
commit | 3528dcdfa18d688ec3fc69132095e93a8fe380c4 (patch) | |
tree | 039504c99403f9431197779351f000ae09730498 /src/compiler/nir/nir_print.c | |
parent | 548b2d47b2879f8dbb4362d03c3428801dae3260 (diff) | |
download | mesa-3528dcdfa18d688ec3fc69132095e93a8fe380c4.tar.gz |
nir: add nir_io_semantics::no_varying, no_sysval_output, and helpers
This is for drivers that have separate store instructions for varyings,
system value outputs (such as clip distances), and transform feedback.
The flags tell the driver not to store the output to those locations.
This will be used by radeonsi initially, and then maybe by a new linker.
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14388>
Diffstat (limited to 'src/compiler/nir/nir_print.c')
-rw-r--r-- | src/compiler/nir/nir_print.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index c22727c8d37..24c50978ddf 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -1061,6 +1061,12 @@ print_intrinsic_instr(nir_intrinsic_instr *instr, print_state *state) if (io.high_16bits) fprintf(fp, " high_16bits"); + if (io.no_varying) + fprintf(fp, " no_varying"); + + if (io.no_sysval_output) + fprintf(fp, " no_sysval_output"); + if (state->shader && state->shader->info.stage == MESA_SHADER_GEOMETRY && (instr->intrinsic == nir_intrinsic_store_output || |