diff options
author | Rob Clark <[email protected]> | 2016-01-30 13:11:47 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-05-11 12:20:11 -0400 |
commit | e1d80f8603defb049437dd828b43a5453486b70a (patch) | |
tree | 98070b70fa43b29e004c5031db02f19af510fa42 /src/gallium/include/pipe/p_state.h | |
parent | 425dc4c4b3663c619634de9f9f00c7765e7d0320 (diff) |
gallium: add NIR as a possible IR
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/include/pipe/p_state.h')
-rw-r--r-- | src/gallium/include/pipe/p_state.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index 3f14e41dff1..eacf9bbe68b 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -221,6 +221,11 @@ struct pipe_stream_output_info * * TODO pipe_compute_state should probably get similar treatment to handle * multiple IR's in a cleaner way.. + * + * NOTE: since it is expected that the consumer will want to perform + * additional passes on the nir_shader, the driver takes ownership of + * the nir_shader. If state trackers need to hang on to the IR (for + * example, variant management), it should use nir_shader_clone(). */ struct pipe_shader_state { @@ -230,6 +235,7 @@ struct pipe_shader_state union { void *llvm; void *native; + void *nir; } ir; struct pipe_stream_output_info stream_output; }; |