Skip encoder reprobing if no GPU changes have occurred

This commit is contained in:
Cameron Gutman committed 2024-02-06 20:00:24 -06:00
1 parent 040c3a6916
commit ff8c8ce3ab
5 files changed
+66 -2

No files matched your search

+10
View File
@@ -773,6 +773,16 @@ namespace platf {
return {};
}
/**
* @brief Returns if GPUs/drivers have changed since the last call to this function.
* @return `true` if a change has occurred or if it is unknown whether a change occurred.
*/
bool
needs_encoder_reenumeration() {
// We don't track GPU state, so we will always reenumerate. Fortunately, it is fast on Linux.
return true;
}
std::shared_ptr<display_t>
display(mem_type_e hwdevice_type, const std::string &display_name, const video::config_t &config) {
#ifdef SUNSHINE_BUILD_CUDA