summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_scan.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-10-05 00:08:30 +0200
committerMarek Olšák <[email protected]>2015-10-09 22:02:18 +0200
commitc80c19a9d550745b68ce1df5f6c73e89a41514fa (patch)
treed4f7ea10a39556286eb810882986ba9d6deab081 /src/gallium/auxiliary/tgsi/tgsi_scan.c
parent417927ebded4c6f4cee20c7e07a69c666a3f17a8 (diff)
tgsi/scan: add info about declared samplers (v2)
v2: get it from declarations, not instructions
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 d76dddbf7d9..b84a1753eeb 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_scan.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c
@@ -409,6 +409,8 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
info->writes_edgeflag = TRUE;
}
}
+ } else if (file == TGSI_FILE_SAMPLER) {
+ info->samplers_declared |= 1 << reg;
}
}
}