From: Marek Olšák Date: Sun, 7 Dec 2014 18:20:10 +0000 (+0100) Subject: tgsi: add tgsi_shader_info::writes_clipvertex X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b76bb3ba7c9358d1c0fc110199846c0d229776b;p=mesa.git tgsi: add tgsi_shader_info::writes_clipvertex Reviewed-by: Brian Paul --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c index 9d155c908f5..649c327d9c9 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.c +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c @@ -245,6 +245,9 @@ tgsi_scan_shader(const struct tgsi_token *tokens, else if (semName == TGSI_SEMANTIC_PSIZE) { info->writes_psize = TRUE; } + else if (semName == TGSI_SEMANTIC_CLIPVERTEX) { + info->writes_clipvertex = TRUE; + } } if (procType == TGSI_PROCESSOR_FRAGMENT) { diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.h b/src/gallium/auxiliary/tgsi/tgsi_scan.h index 56079977bf1..61ce81342a4 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.h +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.h @@ -77,6 +77,7 @@ struct tgsi_shader_info boolean uses_primid; boolean uses_frontface; boolean writes_psize; + boolean writes_clipvertex; boolean writes_viewport_index; boolean writes_layer; boolean is_msaa_sampler[PIPE_MAX_SAMPLERS];