[GPU] Improve readability of initialization errors and remove references to OpenGL.

This commit is contained in:
gibbed 2018-07-01 16:49:36 -05:00
parent 94d1106386
commit ba7dc6b2d7
3 changed files with 19 additions and 9 deletions

View File

@ -68,10 +68,14 @@ X_STATUS GraphicsSystem::Setup(cpu::Processor* processor,
if (!processor_context) { if (!processor_context) {
xe::FatalError( xe::FatalError(
"Unable to initialize graphics context. Xenia requires OpenGL 4.5 or " "Unable to initialize graphics context. Xenia requires Vulkan "
"Vulkan support. Ensure you have the latest drivers for your GPU and " "support.\n"
"that it supports OpenGL or Vulkan. See http://xenia.jp/faq/ for " "\n"
"more information."); "Ensure you have the latest drivers for your GPU and "
"that it supports Vulkan.\n"
"\n"
"See http://xenia.jp/faq/ for more information and a list of "
"supported GPUs.");
return X_STATUS_UNSUCCESSFUL; return X_STATUS_UNSUCCESSFUL;
} }
} }

View File

@ -30,9 +30,12 @@ std::unique_ptr<VulkanProvider> VulkanProvider::Create(Window* main_window) {
if (!provider->Initialize()) { if (!provider->Initialize()) {
xe::FatalError( xe::FatalError(
"Unable to initialize Vulkan graphics subsystem.\n" "Unable to initialize Vulkan graphics subsystem.\n"
"\n"
"Ensure you have the latest drivers for your GPU and that it " "Ensure you have the latest drivers for your GPU and that it "
"supports Vulkan. See http://xenia.jp/faq/ for more information and a " "supports Vulkan.\n"
"list of supported GPUs."); "\n"
"See http://xenia.jp/faq/ for more information and a list of supported "
"GPUs.");
return nullptr; return nullptr;
} }
return provider; return provider;

View File

@ -399,9 +399,12 @@ const char* to_string(VkPresentModeKHR present_mode) {
void FatalVulkanError(std::string error) { void FatalVulkanError(std::string error) {
xe::FatalError( xe::FatalError(
error + error +
"\nEnsure you have the latest drivers for your GPU and that it supports " "\n\n"
"Vulkan. See http://xenia.jp/faq/ for more information and a list" "Ensure you have the latest drivers for your GPU and that it supports "
"of supported GPUs."); "Vulkan.\n"
"\n"
"See http://xenia.jp/faq/ for more information and a list of supported "
"GPUs.");
} }
void CheckResult(VkResult result, const char* action) { void CheckResult(VkResult result, const char* action) {