Sitelet https://github.com/microsoft/DirectX-Graphics-Samples/pull/676
Skip to content

Fixed the DXR samples so they can run on (I'm wheezing) Surface Book 3. - #676

Merged
Sebastian Merry (sebmerry) merged 1 commit into
microsoft:masterfrom
sherief:master
Dec 3, 2020
Merged

Sebastian Merry (sebmerry) merged 1 commit into
microsoft:masterfrom
sherief:master

Conversation

@sherief

@sherief sherief commented Nov 27, 2020

Copy link
Copy Markdown
Contributor

Fixed the DXR samples so they can run on (I'm wheezing) Surface Book 3 and other MSHybrid systems.

@ghost

Deleted user (ghost) commented Nov 27, 2020 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@sherief

sherief commented Nov 27, 2020

Copy link
Copy Markdown
Contributor Author

TL;DR on the CLA, code is in the public domain glhf.

{
throw exception("DXGI 1.6 not supported");
}
for (UINT adapterID = 0; DXGI_ERROR_NOT_FOUND != factory6->EnumAdapterByGpuPreference(adapterID, DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE, IID_PPV_ARGS(&adapter)); ++adapterID)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There was a recent fix to make this a little more robust. Change this:

DXGI_ERROR_NOT_FOUND != m_dxgiFactory->EnumAdapters1(adapterID, &adapter); ++adapterID)

to

SUCCEEDED(m_dxgiFactory->EnumAdapters1(adapterID, &adapter); ++adapterID))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That would definitely be an improvement, I'm only fixing one thing at (my own) time though, I don't think I will spend more time on this unless the core functionality of making it work on MSHybrid systems has issues.

@sherief

sherief commented Nov 28, 2020

Copy link
Copy Markdown
Contributor Author

I signed the CLA, should be merge-able as-is now.

@sherief

sherief commented Dec 2, 2020

Copy link
Copy Markdown
Contributor Author

Ping - any blockers on this?

@sebmerry

Copy link
Copy Markdown
Member

I'll update adapter enumeration code for the DXR samples to bring it in line with the other samples.

@sebmerry
Sebastian Merry (sebmerry) merged commit 06debb3 into microsoft:master Dec 3, 2020
@ghost

Copy link
Copy Markdown

Have at Ye!

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.

3 participants