From: Ilia Mirkin Date: Sat, 21 Jun 2014 23:12:24 +0000 (-0400) Subject: mesa/st: handle gl_Layer input semantic X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a91a556c813cf7ecf462774e970f47072e2a7f82;p=mesa.git mesa/st: handle gl_Layer input semantic Signed-off-by: Ilia Mirkin Reviewed-by: Marek Olšák --- 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;