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

Add initial nvofapi tests #249

Merged
merged 6 commits into from
Feb 1, 2025
Merged

Add initial nvofapi tests #249

merged 6 commits into from
Feb 1, 2025

Conversation

jp7677
Copy link
Owner

@jp7677 jp7677 commented Jan 26, 2025

Just the very basics and and some preparations. Not yet tested.

@jp7677 jp7677 force-pushed the nvofapi-resourcefactory branch 6 times, most recently from 8741522 to 60a57d2 Compare January 29, 2025 19:11
@jp7677 jp7677 changed the title Add nvofapi tests Add initial nvofapi tests Jan 29, 2025
@jp7677 jp7677 force-pushed the nvofapi-resourcefactory branch 3 times, most recently from a343dc7 to 4323e7c Compare January 29, 2025 20:07
@jp7677 jp7677 marked this pull request as ready for review January 29, 2025 20:32
.github/workflows/build-test-package-linux.yml Outdated Show resolved Hide resolved
src/interfaces/vkd3d-proton_interfaces.h Show resolved Hide resolved
src/nvofapi/nvofapi_d3d12_instance.cpp Outdated Show resolved Hide resolved
src/nvofapi/nvofapi_vk_instance.cpp Outdated Show resolved Hide resolved
src/nvofapi/nvofapi_d3d12_instance.cpp Show resolved Hide resolved
src/nvofapi/nvofapi_vk_instance.cpp Show resolved Hide resolved
src/shared/vk.h Show resolved Hide resolved
@jp7677 jp7677 force-pushed the nvofapi-resourcefactory branch 2 times, most recently from 90eff35 to c613a2b Compare January 31, 2025 06:46
@jp7677 jp7677 force-pushed the nvofapi-resourcefactory branch from c613a2b to 872dd78 Compare January 31, 2025 22:02
Copy link
Collaborator

@Saancreed Saancreed left a comment

Choose a reason for hiding this comment

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

Nothing else stands out, so I suppose it should be good now. Do you want me to build and try to run games with it locally for safety before it's merged?

@jp7677
Copy link
Owner Author

jp7677 commented Feb 1, 2025

Nothing else stands out, so I suppose it should be good now. Do you want me to build and try to run games with it locally for safety before it's merged?

Yes, that would be nice. Thanks!

Also split current ResourceFactory into ResourceFactory and
NvapiResourceFactory to keep Shared free from dxgi. lfx and
nvml.
Technically this changes the behavior from loading the corresponding
Vulkan library into just retrieving a handle of already-loaded one.
Probably doesn't matter though, it shouldn't be possible to create
ID3D12Device from vkd3d-proton without having winevulkan loaded.
Move mocks and resource factory related files to separate folder.
@jp7677 jp7677 force-pushed the nvofapi-resourcefactory branch from 872dd78 to c8c60a4 Compare February 1, 2025 12:34
@Saancreed
Copy link
Collaborator

It does appear to be working, both D3D12 and Vulkan flavors (the latter in Portal RTX), although the version is reported strangely, even after ninja clean

info:nvofapi64:DXVK-NVAPI v0.8.0-28-g81c9e1f+ NVOFAPI/D3D12 gcc 14.2.0 x86_64 release (HorizonForbiddenWest.exe)

But yeah, working fine.

@jp7677 jp7677 merged commit c8c60a4 into master Feb 1, 2025
4 checks passed
@jp7677 jp7677 deleted the nvofapi-resourcefactory branch February 1, 2025 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants