Expose GetBlockIndexGFXR() from capture layer#1128
Conversation
|
CI gfxreconstruct build queued with queue ID 2998. |
|
CI gfxreconstruct build # 2793 running. |
|
CI gfxreconstruct build # 2793 passed. |
|
CI gfxreconstruct build queued with queue ID 3620. |
|
CI gfxreconstruct build # 2797 running. |
|
CI gfxreconstruct build # 2797 passed. |
a60a58c to
dfceb87
Compare
|
CI gfxreconstruct build queued with queue ID 4671. |
|
CI gfxreconstruct build # 2798 running. |
|
CI gfxreconstruct build # 2798 failed. |
|
CI gfxreconstruct build queued with queue ID 6312. |
|
CI gfxreconstruct build # 2809 running. |
|
CI gfxreconstruct build # 2809 passed. |
|
The code looks good to me. Could you please give me some examples of where we will need the capture block index? How is the purpose different from the decoder block index? Thank you.
|
|
This change is needed for the perfetto layer (https://github.com/panos-lunarg/GFXR_layers). The perfetto layer is basically a vulkan layer that queries the current block id (by calling the I am not sure what you mean with system code but with this change the vulkan capture manager should generate the same block ids as the file processor as it parses the file. So the block ID should be the same when capturing and when replaying |
|
System code I mean something aren't Vulkan function calls. It doesn't matter. LGTM. |
|
I'm thinking that could we write this block index to the file? So the decoder could just read the block index to ensure both have the same block index. The decoder won't count it by itself. |
|
I am not sure if it's worth it. We can't store the id in the block header without breaking backward compatibility, so we'll have to store it as a metadata? This would essentially double the blocks written to the file. |
|
You are right. We shouldn't break backward compatibility. |
bradgrantham-lunarg
left a comment
There was a problem hiding this comment.
This looks pretty good to me. Later we can consider whether this should be exposed through some kind of "LUNARG" Vulkan extension, maybe even make it generic like VK_LUNARG_get_tooling_marker or some such.
GetBlockIndexGFXR() returns the current block index being processed by the capture manager.
dfceb87 to
09a641c
Compare
|
CI gfxreconstruct build queued with queue ID 4799. |
|
CI gfxreconstruct build # 2963 running. |
|
CI gfxreconstruct build # 2963 passed. |
GetBlockIndexGFXR() returns the current block index being processed by the capture manager.