freedreno icon indicating copy to clipboard operation
freedreno copied to clipboard

disasm-a3xx.c : unknown(4,9)

Open metora opened this issue 7 years ago • 3 comments

Hello

I try to disassembly shader on Adreno 530, then it show [unknown(4,9)]. And I found [rcp rsq rsqh exp2h log2h sinpb2] in libllvm-qcom.so. So I guess it has new instructions on Adreno 530.

metora avatar Mar 15 '17 16:03 metora

yes, does look like a new cat4 instruction.. I guess if you have a simple shader that triggers the instruction, and the rest of the disassembled shader, it shouldn't be too hard to figure out what it is.

robclark avatar Mar 15 '17 17:03 robclark

The result I tried.

OPC_RSQH = _OPC(4, 9), OPC_LOG2H = _OPC(4, 10), OPC_EXP2H = _OPC(4, 11),

but I don't know what is sinpb2?

metora avatar Mar 16 '17 16:03 metora

rsqh/log2h/exp2h... wonder if those are for half-precision (mediump)? What happens if you try to use highp?

sinpb2, not really sure.. I'd have to see how it is used (ie. asm dump vs glsl)

robclark avatar Mar 16 '17 18:03 robclark