OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7801425
)
broadcom/vc5: Add missing shader-db instruction counting.
author
Eric Anholt
<eric@anholt.net>
Sun, 4 Feb 2018 21:27:32 +0000
(21:27 +0000)
committer
Eric Anholt
<eric@anholt.net>
Mon, 5 Feb 2018 09:29:37 +0000
(09:29 +0000)
I must have misplaced it in the instruction packing rework.
src/broadcom/compiler/vir_to_qpu.c
patch
|
blob
|
history
diff --git
a/src/broadcom/compiler/vir_to_qpu.c
b/src/broadcom/compiler/vir_to_qpu.c
index
432f156
..
11a7ef9
100644
(file)
--- a/
src/broadcom/compiler/vir_to_qpu.c
+++ b/
src/broadcom/compiler/vir_to_qpu.c
@@
-334,6
+334,13
@@
v3d_vir_to_qpu(struct v3d_compile *c, struct qpu_reg *temp_registers)
assert(i == c->qpu_inst_count);
if (V3D_DEBUG & V3D_DEBUG_SHADERDB) {
+ fprintf(stderr, "SHADER-DB: %s prog %d/%d: %d instructions\n",
+ vir_get_stage_name(c),
+ c->program_id, c->variant_id,
+ c->qpu_inst_count);
+ }
+
+ if (V3D_DEBUG & V3D_DEBUG_SHADERDB) {
fprintf(stderr, "SHADER-DB: %s prog %d/%d: %d estimated cycles\n",
vir_get_stage_name(c),
c->program_id, c->variant_id,