summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-06-23 06:39:21 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:39 +0200
commitfb166b5ff4b42279b2c63c69f5b5a35feafa259e (patch)
tree16c302ad248d949b76add9a12be62fe2cbb675e0 /src/video_core/renderer_opengl
parentshader: Add int64 to int32 lowering pass (diff)
downloadyuzu-fb166b5ff4b42279b2c63c69f5b5a35feafa259e.tar
yuzu-fb166b5ff4b42279b2c63c69f5b5a35feafa259e.tar.gz
yuzu-fb166b5ff4b42279b2c63c69f5b5a35feafa259e.tar.bz2
yuzu-fb166b5ff4b42279b2c63c69f5b5a35feafa259e.tar.lz
yuzu-fb166b5ff4b42279b2c63c69f5b5a35feafa259e.tar.xz
yuzu-fb166b5ff4b42279b2c63c69f5b5a35feafa259e.tar.zst
yuzu-fb166b5ff4b42279b2c63c69f5b5a35feafa259e.zip
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r--src/video_core/renderer_opengl/gl_device.cpp1
-rw-r--r--src/video_core/renderer_opengl/gl_device.h5
-rw-r--r--src/video_core/renderer_opengl/gl_shader_cache.cpp2
3 files changed, 7 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_device.cpp b/src/video_core/renderer_opengl/gl_device.cpp
index 5838fc02f..b1b5ba1ab 100644
--- a/src/video_core/renderer_opengl/gl_device.cpp
+++ b/src/video_core/renderer_opengl/gl_device.cpp
@@ -159,6 +159,7 @@ Device::Device() {
has_debugging_tool_attached = IsDebugToolAttached(extensions);
has_depth_buffer_float = HasExtension(extensions, "GL_NV_depth_buffer_float");
has_nv_gpu_shader_5 = GLAD_GL_NV_gpu_shader5;
+ has_shader_int64 = HasExtension(extensions, "GL_ARB_gpu_shader_int64");
has_amd_shader_half_float = GLAD_GL_AMD_gpu_shader_half_float;
has_sparse_texture_2 = GLAD_GL_ARB_sparse_texture2;
warp_size_potentially_larger_than_guest = !is_nvidia && !is_intel;
diff --git a/src/video_core/renderer_opengl/gl_device.h b/src/video_core/renderer_opengl/gl_device.h
index 0c9d6fe31..0bd277d38 100644
--- a/src/video_core/renderer_opengl/gl_device.h
+++ b/src/video_core/renderer_opengl/gl_device.h
@@ -124,6 +124,10 @@ public:
return has_nv_gpu_shader_5;
}
+ bool HasShaderInt64() const {
+ return has_shader_int64;
+ }
+
bool HasAmdShaderHalfFloat() const {
return has_amd_shader_half_float;
}
@@ -172,6 +176,7 @@ private:
bool use_driver_cache{};
bool has_depth_buffer_float{};
bool has_nv_gpu_shader_5{};
+ bool has_shader_int64{};
bool has_amd_shader_half_float{};
bool has_sparse_texture_2{};
bool warp_size_potentially_larger_than_guest{};
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.cpp b/src/video_core/renderer_opengl/gl_shader_cache.cpp
index c36b0d8cf..f2f18b18a 100644
--- a/src/video_core/renderer_opengl/gl_shader_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp
@@ -211,7 +211,7 @@ ShaderCache::ShaderCache(RasterizerOpenGL& rasterizer_, Core::Frontend::EmuWindo
},
host_info{
.support_float16 = false,
- .support_int64 = true,
+ .support_int64 = device.HasShaderInt64(),
} {
if (use_asynchronous_shaders) {
workers = CreateWorkers();