-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ags to convert tool #1211
Add ags to convert tool #1211
Conversation
CI gfxreconstruct build queued with queue ID 10482. |
CI gfxreconstruct build # 3015 running. |
CI gfxreconstruct build # 3015 failed. |
CI gfxreconstruct build queued with queue ID 10561. |
CI gfxreconstruct build # 3017 running. |
CI gfxreconstruct build # 3017 passed. |
It looks like the PR needs a simple |
CI gfxreconstruct build queued with queue ID 13613. |
CI gfxreconstruct build # 3027 running. |
Updated. |
CI gfxreconstruct build # 3027 failed. |
CI gfxreconstruct build queued with queue ID 13964. |
CI build #3027 failed because the Pixel 3 needs a factory reset. I've restarted your run. |
CI gfxreconstruct build # 3031 running. |
CI gfxreconstruct build # 3031 passed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems fine to me with a few tweaks noted inline as separate comments.
I think ideally we'd prefer:
- JSON output to use the nlohmann library in
external\nlohmann\include\nlohmann\json.hpp
, - to use
Json
andjson
in names of types and files instead ofAscii
andascii
, - and for the JSON output to be structured more like the Vulkan schema.
That ideal outcome would give us simpler code and consistency in output,
but this should still slot in next to the other JSON Consumers and could still be useful.
I agree about the change to block indexes, and good catch deleting the dead code counting calls but never using the count.
These are general efforts. Is there any work going on in parallel for the gfxrecon-convert project at LunarG? Will the future work on gfxrecon-convert be based on this PR? We don't want duplicated efforts. |
There are ongoing efforts to work on Convert. The Vulkan support in Convert all uses the nlohmann library. The DX12 support is being moved to it. There is no internal plan to move AGS to it. For the purpose of this PR, I think the important part of my previous review comment was:
I.e. we can get this in to dev now with a couple of tweaks and worry about bringing it more in-line with the JSON output for the other APIs later if there is desire to do so. If you would rather wait and see what the changes to DX12 look like before merging this, that is also an option. |
CI gfxreconstruct build queued with queue ID 50726. |
For moving to using nlohmann library and related file renaming, I think it would be better to do it together with (or after) the changes to DX12. |
CI gfxreconstruct build # 3277 running. |
CI gfxreconstruct build # 3277 failed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I think the ToString
functions in util mentioned by David could be used though.
CI gfxreconstruct build queued with queue ID 64155. |
CI gfxreconstruct build queued with queue ID 64158. |
CI gfxreconstruct build # 3391 failed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taking my approval off the PR and requesting the duplicate DX12 enum to string functions are removed in favour of our existing generated_dx12_enum_to_string.h
, unless there is something missing from them that these ones in the PR provide. In particular the changes requested by David in comments.
CI gfxreconstruct build queued with queue ID 84181. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM although this PR branch is more than 100 commits behind dev
so it might be a good idea to rebase manually before merging.
CI gfxreconstruct build # 3504 running. |
CI gfxreconstruct build # 3504 failed. |
Closed, because it is replaced by PR #1360. |
Problem
Solution
Result
AGS calls are included in the convert output file. Indices are block index values now.