diff options
| author | 2018-12-26 02:14:06 -0300 | |
|---|---|---|
| committer | 2019-01-15 17:54:53 -0300 | |
| commit | d6b173d5fee722f0db49e63b510fb2c4d78260b0 (patch) | |
| tree | cfe898a57786f921c4c26ef94823414f8a2f41b7 /src | |
| parent | gl_shader_gen: Fixup code formatting (diff) | |
| download | yuzu-d6b173d5fee722f0db49e63b510fb2c4d78260b0.tar.gz yuzu-d6b173d5fee722f0db49e63b510fb2c4d78260b0.tar.xz yuzu-d6b173d5fee722f0db49e63b510fb2c4d78260b0.zip | |
gl_shader_decompiler: Use rasterizer's UBO size limit
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index bff6b0b0e..7d7abe703 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | #include "common/assert.h" | 12 | #include "common/assert.h" |
| 13 | #include "common/common_types.h" | 13 | #include "common/common_types.h" |
| 14 | #include "video_core/engines/maxwell_3d.h" | 14 | #include "video_core/engines/maxwell_3d.h" |
| 15 | #include "video_core/renderer_opengl/gl_rasterizer.h" | ||
| 15 | #include "video_core/renderer_opengl/gl_shader_decompiler.h" | 16 | #include "video_core/renderer_opengl/gl_shader_decompiler.h" |
| 16 | #include "video_core/shader/shader_ir.h" | 17 | #include "video_core/shader/shader_ir.h" |
| 17 | 18 | ||
| @@ -30,7 +31,8 @@ using ShaderStage = Tegra::Engines::Maxwell3D::Regs::ShaderStage; | |||
| 30 | using Operation = const OperationNode&; | 31 | using Operation = const OperationNode&; |
| 31 | 32 | ||
| 32 | enum : u32 { POSITION_VARYING_LOCATION = 0, GENERIC_VARYING_START_LOCATION = 1 }; | 33 | enum : u32 { POSITION_VARYING_LOCATION = 0, GENERIC_VARYING_START_LOCATION = 1 }; |
| 33 | constexpr u32 MAX_CONSTBUFFER_ELEMENTS = 65536 / 16; // TODO(Rodrigo): Use rasterizer's value | 34 | constexpr u32 MAX_CONSTBUFFER_ELEMENTS = |
| 35 | static_cast<u32>(RasterizerOpenGL::MaxConstbufferSize) / (4 * sizeof(float)); | ||
| 34 | 36 | ||
| 35 | enum class Type { Bool, Bool2, Float, Int, Uint, HalfFloat }; | 37 | enum class Type { Bool, Bool2, Float, Int, Uint, HalfFloat }; |
| 36 | 38 | ||