summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_program.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2019-06-25 20:53:15 +1000
committerTimothy Arceri <[email protected]>2019-06-26 00:36:48 +0000
commitd19fe5e67a3945582448748c72b10fd5029d2ed5 (patch)
treede982ef463558b0423501dbe9fc9d904b917e0f9 /src/mesa/state_tracker/st_program.h
parentf5f31612d3392cb9ea015b157c4d564ac549a2f5 (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.h6
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,