tgsi: add tgsi_shader_info::writes_psize

Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Marek Olšák 2014-12-07 18:49:31 +01:00
parent 0a60ebe30c
commit 946eb08e6a
2 changed files with 4 additions and 0 deletions

View File

@ -238,6 +238,9 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
else if (semName == TGSI_SEMANTIC_LAYER) {
info->writes_layer = TRUE;
}
else if (semName == TGSI_SEMANTIC_PSIZE) {
info->writes_psize = TRUE;
}
}
if (procType == TGSI_PROCESSOR_FRAGMENT) {

View File

@ -76,6 +76,7 @@ struct tgsi_shader_info
boolean uses_vertexid;
boolean uses_primid;
boolean uses_frontface;
boolean writes_psize;
boolean writes_viewport_index;
boolean writes_layer;
boolean is_msaa_sampler[PIPE_MAX_SAMPLERS];