Also report if a shader writes the layer semantic
Reviewed-by: Brian Paul <brianp@vmware.com>
TGSI_SEMANTIC_VIEWPORT_INDEX) {
info->writes_viewport_index = TRUE;
}
+ if (procType == TGSI_PROCESSOR_GEOMETRY &&
+ fulldecl->Semantic.Name ==
+ TGSI_SEMANTIC_LAYER) {
+ info->writes_layer = TRUE;
+ }
}
}
boolean pixel_center_integer;
boolean color0_writes_all_cbufs;
boolean writes_viewport_index;
+ boolean writes_layer;
unsigned num_written_clipdistance;
/**
"THREAD_ID",
"TEXCOORD",
"PCOORD",
- "VIEWPORT_INDEX"
+ "VIEWPORT_INDEX",
+ "LAYER"
};
const char *tgsi_texture_names[TGSI_TEXTURE_COUNT] =