diff options
author | Timothy Arceri <[email protected]> | 2019-06-25 20:53:15 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2019-06-26 00:36:48 +0000 |
commit | d19fe5e67a3945582448748c72b10fd5029d2ed5 (patch) | |
tree | de982ef463558b0423501dbe9fc9d904b917e0f9 /src/mesa/state_tracker/st_program.h | |
parent | f5f31612d3392cb9ea015b157c4d564ac549a2f5 (diff) |
st/glsl: support clamping color outputs in compat for gs/tes
This support requires the driver to be a NIR driver as we use the
NIR lowering pass to do the clamping.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_program.h')
-rw-r--r-- | src/mesa/state_tracker/st_program.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_program.h b/src/mesa/state_tracker/st_program.h index f67ea5eb208..59a60368039 100644 --- a/src/mesa/state_tracker/st_program.h +++ b/src/mesa/state_tracker/st_program.h @@ -241,6 +241,9 @@ struct st_vertex_program struct st_basic_variant_key { struct st_context *st; /**< variants are per-context */ + + /** For compat profile */ + bool clamp_color; }; @@ -401,7 +404,8 @@ st_get_cp_variant(struct st_context *st, extern struct st_basic_variant * st_get_basic_variant(struct st_context *st, unsigned pipe_shader, - struct st_common_program *p); + struct st_common_program *p, + const struct st_basic_variant_key *key); extern void st_release_vp_variants( struct st_context *st, |