Skip to content

Conversation

@Beyley
Copy link
Contributor

@Beyley Beyley commented Sep 24, 2023

Summary of the PR

Update vkd3d to my latest fork, and to Zig 0.12.0-dev.405+c1e94b28a

Related issues, Discord discussions, or proposals

Closes #1634

Further Comments

My fork now has the ms_abi patch applied, so it should fix the ABI issues we sometimes saw

@Beyley Beyley requested a review from a team as a code owner September 24, 2023 20:41
Co-authored-by: The Silk.NET Automaton <9011267+dotnet-bot@users.noreply.github.com>
option->value = true;
}

if (flags & (D3DCOMPILE_PACK_MATRIX_ROW_MAJOR | D3DCOMPILE_PACK_MATRIX_COLUMN_MAJOR))
Copy link
Member

Choose a reason for hiding this comment

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

Where does the code in this file actually come from?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Feels like a bit too much human intervention (and code that isn't ours, in our repo, effectively untracked)

I know it's cursed, but we could do something like

#include "vkd3d_utils_main.c"
#undef D3D12GetDebugInterface
#undef D3D12CreateDeviceVKD3D
#undef D3D12CreateRootSignatureDeserializer
#undef D3D12CreateVersionedRootSignatureDeserializer
// etc...

Alternatively we could leave the irrelevant parts in... just not really keen on us having our own "buffer" of upstream

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Feels like a bit too much human intervention (and code that isn't ours, in our repo, effectively untracked)

I know it's cursed, but we could do something like

#include "vkd3d_utils_main.c"
#undef D3D12GetDebugInterface
#undef D3D12CreateDeviceVKD3D
#undef D3D12CreateRootSignatureDeserializer
#undef D3D12CreateVersionedRootSignatureDeserializer
// etc...

Alternatively we could leave the irrelevant parts in... just not really keen on us having our own "buffer" of upstream

The irrelevant parts more meant it complicated the build process, since stuff like the logging macros were causing a billion undefined symbol errors i was not too keen on debugging/fixing, but i can give using the original source a shot with some well placed def and undef if desired

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, the main thing is I had no idea this existed (yes I know clearly I don't pay that much attention) and wouldn't have thought to check here when updating vkd3d, and the same will definitely be said for whoever comes after you & I.

Eliminating as much human error as possible should be key, and this I feel like is definitely human-error-prone

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, the main thing is I had no idea this existed (yes I know clearly I don't pay that much attention) and wouldn't have thought to check here when updating vkd3d, and the same will definitely be said for whoever comes after you & I.

Eliminating as much human error as possible should be key, and this I feel like is definitely human-error-prone

to be fair i also had to reference my own commits to figure out what i had done, so its a bit error prone yeah, i'll try to get the original source working at some point soon (and also update past .405 so we get them LLVM 17 benefits)

Copy link
Member

Choose a reason for hiding this comment

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

Notably 4 months ago they removed ms_abi so we are likely to have fixed #1634

Copy link
Member

Choose a reason for hiding this comment

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

...although you probably already knew that as you've already linked the issue 🤦

@Perksey
Copy link
Member

Perksey commented Oct 4, 2023

Converting back to draft for the time being (so I stop checking this!)

@Perksey Perksey marked this pull request as draft October 4, 2023 01:54
@Perksey
Copy link
Member

Perksey commented Oct 7, 2023

2.18 snap is on Tuesday, is this likely to make it in?

@Beyley
Copy link
Contributor Author

Beyley commented Oct 7, 2023

2.18 snap is on Tuesday, is this likely to make it in?

uhhhhh maybe? ive been very lazy and tired the past week so it depends on if i have the energy to work on it before then (which itself depends on my AC getting fixed, i dont have the energy to fight C when its already like 30 degrees C in my house)

Beyley and others added 4 commits October 11, 2023 18:20
… SMP Thu Sep 7 14:07:14 UTC 2023 (#1720)

Co-authored-by: The Silk.NET Automaton <9011267+dotnet-bot@users.noreply.github.com>
…untu SMP Thu Sep 7 14:07:14 UTC 2023 (#1717)

Co-authored-by: The Silk.NET Automaton <9011267+dotnet-bot@users.noreply.github.com>
…Ubuntu SMP Thu Sep 7 14:07:14 UTC 2023 (#1711)

Co-authored-by: The Silk.NET Automaton <9011267+dotnet-bot@users.noreply.github.com>
@Perksey
Copy link
Member

Perksey commented Nov 21, 2023

Assuming this is probably stale?

@Perksey
Copy link
Member

Perksey commented Dec 12, 2023

closing as stale

@Perksey Perksey closed this Dec 12, 2023
@Beyley Beyley mentioned this pull request Dec 21, 2023
@Perksey Perksey deleted the feature/vkd3d-fixes branch November 2, 2024 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Possible calling convention issue with ID3D11Blob (vkd3d) on linux x64 using dxvk

4 participants