aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2015-10-30 18:41:09 -0400
committerIlia Mirkin <[email protected]>2015-11-05 11:22:19 -0500
commit4f6cd5fad03757e371b66049dcd42855e4853c14 (patch)
tree97ef5cb05876d785a318e29478fb9fc3a518c756 /src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp
parent4335b28840be53ad3c230a4f2dfc2262bf56a0a7 (diff)
nv50,nvc0: provide debug messages with shader compilation stats
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp
index afc8ff1374f..4390a726d1c 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp
@@ -373,6 +373,7 @@ Program::emitBinary(struct nv50_ir_prog_info *info)
if (!code)
return false;
emit->setCodeLocation(code, binSize);
+ info->bin.instructions = 0;
for (ArrayList::Iterator fi = allFuncs.iterator(); !fi.end(); fi.next()) {
Function *fn = reinterpret_cast<Function *>(fi.get());
@@ -382,6 +383,7 @@ Program::emitBinary(struct nv50_ir_prog_info *info)
for (int b = 0; b < fn->bbCount; ++b) {
for (Instruction *i = fn->bbArray[b]->getEntry(); i; i = i->next) {
emit->emitInstruction(i);
+ info->bin.instructions++;
if (i->sType == TYPE_F64 || i->dType == TYPE_F64)
info->io.fp64 = true;
}