diff options
author | Ilia Mirkin <[email protected]> | 2014-06-21 19:12:24 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-06-23 19:23:16 -0400 |
commit | a91a556c813cf7ecf462774e970f47072e2a7f82 (patch) | |
tree | 8d01bf66f29f2f75cf39d4529339c48b92a4b3b7 | |
parent | 98a86f61a8d17eaafaf5907debc7735aa20610d5 (diff) |
mesa/st: handle gl_Layer input semantic
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r-- | src/mesa/state_tracker/st_program.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index 26eb9786dcc..1df411c3b87 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -572,6 +572,11 @@ st_translate_fragment_program(struct st_context *st, input_semantic_index[slot] = 0; interpMode[slot] = TGSI_INTERPOLATE_CONSTANT; break; + case VARYING_SLOT_LAYER: + input_semantic_name[slot] = TGSI_SEMANTIC_LAYER; + input_semantic_index[slot] = 0; + interpMode[slot] = TGSI_INTERPOLATE_CONSTANT; + break; case VARYING_SLOT_VIEWPORT: input_semantic_name[slot] = TGSI_SEMANTIC_VIEWPORT_INDEX; input_semantic_index[slot] = 0; |