mesa/st: handle gl_Layer input semantic
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
98a86f61a8
commit
a91a556c81
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue