Browse Source
Merge pull request #1194 from lioncash/alloc
gl_shader_cache: Remove unused program_code vector in GetShaderAddress()
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
src/video_core/renderer_opengl/gl_shader_cache.cpp
|
|
@ -14,9 +14,8 @@ namespace OpenGL { |
|
|
/// Gets the address for the specified shader stage program
|
|
|
/// Gets the address for the specified shader stage program
|
|
|
static Tegra::GPUVAddr GetShaderAddress(Maxwell::ShaderProgram program) { |
|
|
static Tegra::GPUVAddr GetShaderAddress(Maxwell::ShaderProgram program) { |
|
|
auto& gpu = Core::System::GetInstance().GPU().Maxwell3D(); |
|
|
auto& gpu = Core::System::GetInstance().GPU().Maxwell3D(); |
|
|
|
|
|
|
|
|
GLShader::ProgramCode program_code(GLShader::MAX_PROGRAM_CODE_LENGTH); |
|
|
|
|
|
auto& shader_config = gpu.regs.shader_config[static_cast<size_t>(program)]; |
|
|
auto& shader_config = gpu.regs.shader_config[static_cast<size_t>(program)]; |
|
|
|
|
|
|
|
|
return gpu.regs.code_address.CodeAddress() + shader_config.offset; |
|
|
return gpu.regs.code_address.CodeAddress() + shader_config.offset; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|