aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_scan.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-12-23 03:01:32 +0100
committerMarek Olšák <[email protected]>2016-01-07 18:26:05 +0100
commitf3658be108aa4637aec44d544164d772774ae165 (patch)
treee83b30cafada1721a958c0a968a06e0a91a859b2 /src/gallium/auxiliary/tgsi/tgsi_scan.c
parent3e8f644ed31809ff558dc635581ba7abf6a16776 (diff)
tgsi/scan: set if a fragment shader writes sample mask
This will be used by radeonsi. Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_scan.c')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_scan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c
index e04f4076e9c..e3feed9aa98 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_scan.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c
@@ -392,6 +392,8 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
}
else if (semName == TGSI_SEMANTIC_STENCIL) {
info->writes_stencil = TRUE;
+ } else if (semName == TGSI_SEMANTIC_SAMPLEMASK) {
+ info->writes_samplemask = TRUE;
}
}