What's 'Shader Preamble Stats'?

what’s ‘Shader Preamble Stats’ ?
Thanks!

In what context? Where are you seeing this?

It has nothing to do with OpenGL (the API Spec).

Could be some metrics spewed into generated shader code by some engine.

Adreno Offline Compiler
============ Shader Stats FS ============

     Shader Preamble Stats

Total instruction count :
ALU instruction count - 32 bit :
ALU instruction count - 16 bit :
Complex instruction count - 32 bit :
Complex instruction count - 16 bit :
Flow control instruction count :
Barrier and fence Instruction count :
Short latency sync instruction count :
Long latency sync instruction count :
Texture read instruction count :
Memory read instruction count :
Memory write instruction count :
Miscellaneous instruction count :

     Main Shader Stats

Total instruction count :
ALU instruction count - 32 bit :
ALU instruction count - 16 bit :
Complex instruction count - 32 bit :
Complex instruction count - 16 bit :
Flow control instruction count :
Barrier and fence Instruction count :
Short latency sync instruction count :
Long latency sync instruction count :
Texture read instruction count :
Memory read instruction count :
Memory write instruction count :
Miscellaneous instruction count :
Full precision register footprint per shader instance :
Half precision register footprint per shader instance :
Overall register footprint per shader instance :
Scratch memory usage per shader instance :
Loop count :

Compilation succeeded.

I see, So some stats emitted by the Qualcomm Adreno Offline Compiler (aoc.exe), for individual shaders compiled.

From the headers, it just looks like metrics collected by the compiler from the shader ISA produced, which might be useful to the dev in optimizing shader performance.

For specific questions on these, your best bet is probably to post on one of the Qualcomm OpenGL ES support forums or ask one of Qualcomm’s devtech engineers.

1 Like