Skip to content
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

Fixed CreateCreate typos and Regenerated for DX12 #989

Merged

Conversation

andrew-lunarg
Copy link
Contributor

Fixes #950

@andrew-lunarg andrew-lunarg added the d3d12 Issue with D3D 12 support label Feb 14, 2023
@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 20069.

@@ -40,7 +40,7 @@
},
"ID3D12Device4": {
"CreateReservedResource1": "OverrideCreateReservedResource1",
"CreateCreateCommittedResource1": "OverrideCreateCommittedResource1",
"CreateCommittedResource1": "OverrideCreateCommittedResource1",
"CreateCommandList1": "OverrideCreateCommandList1"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These seem like simple typos. I've addressed them as such.

auto replay_object = MapObject<ID3D12Device4>(object_id);
if (replay_object != nullptr)
auto replay_object = GetObjectInfo(object_id);
if ((replay_object != nullptr) && (replay_object->object != nullptr))
{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty hazy on how the generated code changed so much as a result. @davidd-lunarg If you get any time, your eyes would be useful on this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks correct to me. Before this change, the generated code was resolving the objects to their native DX12 types and making the DX12 API call to CreateCommittedResource1/2. After this change, the objects are resolved to GFXR types (e.g., DxObjectInfo) and passed to Dx12ReplayConsumerBase::OverrideCreateCommittedResource1/2 which is responsible for resolving them to the native DX12 types and making the actual DX12 API call to CreateCommittedResource1/2.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 2409 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 2409 passed.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 20495.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 2412 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 2412 failed.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 20776.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 2415 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 2415 passed.

@andrew-lunarg andrew-lunarg force-pushed the andy-fix-950-createcreate-duplicates branch from fd26ac4 to 338ec2b Compare February 16, 2023 21:07
@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 22671.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 2424 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 2424 passed.

@andrew-lunarg andrew-lunarg merged commit 277e9a9 into LunarG:dev Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
d3d12 Issue with D3D 12 support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

d3d12 CreateCreateCommittedResource2
4 participants