Skip to content

Instantly share code, notes, and snippets.

@Themaister
Created April 16, 2018 18:51
Show Gist options
  • Save Themaister/95188a695d0f49285647772536a54516 to your computer and use it in GitHub Desktop.
Save Themaister/95188a695d0f49285647772536a54516 to your computer and use it in GitHub Desktop.
./cli/fossilize-disasm /tmp/emergency.json --device-index 1 --graphics-pipeline 0 --target amd --stage frag 20:50
WARNING: radv is not a conformant vulkan implementation, testing use only.
Fossilize INFO: Chose GPU:
Fossilize INFO: name: AMD RADV POLARIS10 (LLVM 6.0.0)
Fossilize INFO: apiVersion: 1.0.57
Fossilize INFO: vendorID: 0x1002
Fossilize INFO: deviceID: 0x67df
Fossilize INFO: Creating shader module #0
Fossilize INFO: ... Succeeded!
Fossilize INFO: Creating shader module #1
Fossilize INFO: ... Succeeded!
Fossilize INFO: Creating pipeline layout #0
Fossilize INFO: ... Succeeded!
Fossilize INFO: Creating render pass #0
Fossilize INFO: ... Succeeded!
Fossilize INFO: Creating graphics pipeline #0
Fossilize INFO: ... Succeeded!
Pixel Shader:
main:
BB0_0:
s_mov_b32 m0, s2 ; BEFC0002
v_interp_p1_f32 v2, v0, attr0.x ; D4080000
v_interp_p1_f32 v3, v0, attr0.y ; D40C0100
v_interp_p1_f32 v4, v0, attr0.z ; D4100200
v_interp_p1_f32 v0, v0, attr0.w ; D4000300
v_interp_p2_f32 v2, v1, attr0.x ; D4090001
v_interp_p2_f32 v3, v1, attr0.y ; D40D0101
v_interp_p2_f32 v4, v1, attr0.z ; D4110201
v_interp_p2_f32 v0, v1, attr0.w ; D4010301
v_cvt_pkrtz_f16_f32 v1, v2, v3 ; D2960001 00020702
v_cvt_pkrtz_f16_f32 v0, v4, v0 ; D2960000 00020104
exp mrt0 v1, v1, v0, v0 done compr vm ; C4001C0F 00000001
s_endpgm ; BF810000
*** SHADER CONFIG ***
SPI_PS_INPUT_ADDR = 0x0002
SPI_PS_INPUT_ENA = 0x0002
*** SHADER STATS ***
SGPRS: 8
VGPRS: 8
Spilled SGPRs: 0
Spilled VGPRs: 0
Code Size: 64 bytes
LDS: 0 blocks
Scratch: 0 bytes per wave
Max Waves: 8
********************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment