-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fix fxo dependencies #14897
Fix fxo dependencies #14897
Conversation
18fde3f
to
b3cbed9
Compare
@@ -2412,20 +2413,20 @@ void VKGSRender::close_and_submit_command_buffer(vk::fence* pFence, VkSemaphore | |||
primary_submit_info.wait_on(wait_semaphore, pipeline_stage_flags); | |||
} | |||
|
|||
auto& async_scheduler = g_fxo->get<vk::AsyncTaskScheduler>(); | |||
if (async_scheduler.is_recording()) | |||
if (auto async_scheduler = g_fxo->try_get<vk::AsyncTaskScheduler>(); |
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.
Pretty sure the task scheduler should always exist, at least with the current code model. I'll have to check this properly when I have the time, otherwise it can cause nasty GPU hangs and/or BSODs.
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.
No. it depends on the async compute capability
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.
Which I don't have for some reason
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.
ah. it needs async texture streaming. Otherwise the object is not created.
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.
Only if supports_asynchronous_compute property is true it is created, I believe this is mergeable because its needed for more changes.
677a93c
to
6e8bcef
Compare
Fixes some dependency issues revealed by #14896