summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_program.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-10-23 06:48:30 +0100
committerDave Airlie <[email protected]>2017-10-26 00:55:56 +0100
commit3ee2e98aff4fdddda626d61f2e45bf25bd76d4f5 (patch)
tree538aec4e2a7b573bfa5b38f449fb7fd70de64239 /src/mesa/state_tracker/st_program.h
parent3c34d11589f05e0876a92bd77fd37d3b79a69d35 (diff)
st/program: add support for gs/tes/tcs nir shaders.
This probably needs more work but this just add the initial code to convert gs/tcs/tes nir based shaders in the state tracker. Reviewed-by: Timothy Arceri <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_program.h')
-rw-r--r--src/mesa/state_tracker/st_program.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_program.h b/src/mesa/state_tracker/st_program.h
index 27cc9b6e92f..6049fba517b 100644
--- a/src/mesa/state_tracker/st_program.h
+++ b/src/mesa/state_tracker/st_program.h
@@ -260,6 +260,9 @@ struct st_common_program
struct glsl_to_tgsi_visitor* glsl_to_tgsi;
uint64_t affected_states; /**< ST_NEW_* flags to mark dirty when binding */
+ /* used when bypassing glsl_to_tgsi: */
+ struct gl_shader_program *shader_program;
+
struct st_basic_variant *variants;
/** SHA1 hash of linked tgsi shader program, used for on-disk cache */