diff options
author | Marek Olšák <[email protected]> | 2016-11-14 02:01:34 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-11-21 21:44:35 +0100 |
commit | 7dbf83af54067efcbd8fb872bbd1115fcecfab47 (patch) | |
tree | 276a2fdfa82b1b4fe54996c051fb4a892529e1b4 /src/gallium/auxiliary/tgsi/tgsi_scan.c | |
parent | 8a2251911eee8fa04d350915fa796cb62db5b814 (diff) |
tgsi/scan: record if a shader writes the position output
Tested-by: Edmondo Tommasina <[email protected]>
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.c | 2 |
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 f0dba0b1bda..84d64568c4b 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.c +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c @@ -575,6 +575,8 @@ scan_declaration(struct tgsi_shader_info *info, case TGSI_SEMANTIC_POSITION: if (procType == PIPE_SHADER_FRAGMENT) info->writes_z = true; + else + info->writes_position = true; break; } break; |