Commit 7af0de52 by Jamie Madill Committed by Commit Bot

Rename UniformLinker.cpp/h to ProgramLinkedResources.

A more general name for a file that will house a collection of pogram variable related linking code. BUG=angleproject:2208 Change-Id: I82710f6abadd2df58fb58a3c4179989fe956e7e4 Reviewed-on: https://chromium-review.googlesource.com/755858Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent ef7fb388
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
#include "compiler/translator/blocklayout.h" #include "compiler/translator/blocklayout.h"
#include "libANGLE/Context.h" #include "libANGLE/Context.h"
#include "libANGLE/MemoryProgramCache.h" #include "libANGLE/MemoryProgramCache.h"
#include "libANGLE/ProgramLinkedResources.h"
#include "libANGLE/ResourceManager.h" #include "libANGLE/ResourceManager.h"
#include "libANGLE/Uniform.h" #include "libANGLE/Uniform.h"
#include "libANGLE/UniformLinker.h"
#include "libANGLE/VaryingPacking.h" #include "libANGLE/VaryingPacking.h"
#include "libANGLE/features.h" #include "libANGLE/features.h"
#include "libANGLE/histogram_macros.h" #include "libANGLE/histogram_macros.h"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
// locations. Populates data structures related to uniforms so that they can be stored in program // locations. Populates data structures related to uniforms so that they can be stored in program
// state. // state.
#include "libANGLE/UniformLinker.h" #include "libANGLE/ProgramLinkedResources.h"
#include "common/string_utils.h" #include "common/string_utils.h"
#include "common/utilities.h" #include "common/utilities.h"
...@@ -572,7 +572,7 @@ UniformLinker::ShaderUniformCount UniformLinker::flattenUniformImpl( ...@@ -572,7 +572,7 @@ UniformLinker::ShaderUniformCount UniformLinker::flattenUniformImpl(
uniform.arraySize, binding, offset, *location, -1, uniform.arraySize, binding, offset, *location, -1,
sh::BlockMemberInfo::getDefaultBlockInfo()); sh::BlockMemberInfo::getDefaultBlockInfo());
linkedUniform.mappedName = fullMappedNameWithArrayIndex; linkedUniform.mappedName = fullMappedNameWithArrayIndex;
linkedUniform.staticUse = markStaticUse; linkedUniform.staticUse = markStaticUse;
if (markStaticUse) if (markStaticUse)
{ {
linkedUniform.setStaticUse(shaderType, true); linkedUniform.setStaticUse(shaderType, true);
...@@ -587,7 +587,7 @@ UniformLinker::ShaderUniformCount UniformLinker::flattenUniformImpl( ...@@ -587,7 +587,7 @@ UniformLinker::ShaderUniformCount UniformLinker::flattenUniformImpl(
// Likewise, don't count "real" uniforms towards opaque count. // Likewise, don't count "real" uniforms towards opaque count.
shaderUniformCount.vectorCount = shaderUniformCount.vectorCount =
(IsOpaqueType(uniform.type) ? 0 : (VariableRegisterCount(uniform.type) * elementCount)); (IsOpaqueType(uniform.type) ? 0 : (VariableRegisterCount(uniform.type) * elementCount));
shaderUniformCount.samplerCount = (isSampler ? elementCount : 0); shaderUniformCount.samplerCount = (isSampler ? elementCount : 0);
shaderUniformCount.imageCount = (isImage ? elementCount : 0); shaderUniformCount.imageCount = (isImage ? elementCount : 0);
shaderUniformCount.atomicCounterCount = (isAtomicCounter ? elementCount : 0); shaderUniformCount.atomicCounterCount = (isAtomicCounter ? elementCount : 0);
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include "gmock/gmock.h" #include "gmock/gmock.h"
#include "libANGLE/UniformLinker.h" #include "libANGLE/ProgramLinkedResources.h"
#include "libANGLE/renderer/ProgramImpl.h" #include "libANGLE/renderer/ProgramImpl.h"
namespace rx namespace rx
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
#include "libANGLE/Framebuffer.h" #include "libANGLE/Framebuffer.h"
#include "libANGLE/FramebufferAttachment.h" #include "libANGLE/FramebufferAttachment.h"
#include "libANGLE/Program.h" #include "libANGLE/Program.h"
#include "libANGLE/ProgramLinkedResources.h"
#include "libANGLE/Uniform.h" #include "libANGLE/Uniform.h"
#include "libANGLE/UniformLinker.h"
#include "libANGLE/VertexArray.h" #include "libANGLE/VertexArray.h"
#include "libANGLE/features.h" #include "libANGLE/features.h"
#include "libANGLE/queryconversions.h" #include "libANGLE/queryconversions.h"
......
...@@ -177,6 +177,8 @@ ...@@ -177,6 +177,8 @@
'libANGLE/Platform.cpp', 'libANGLE/Platform.cpp',
'libANGLE/Program.cpp', 'libANGLE/Program.cpp',
'libANGLE/Program.h', 'libANGLE/Program.h',
'libANGLE/ProgramLinkedResources.cpp',
'libANGLE/ProgramLinkedResources.h',
'libANGLE/ProgramPipeline.cpp', 'libANGLE/ProgramPipeline.cpp',
'libANGLE/ProgramPipeline.h', 'libANGLE/ProgramPipeline.h',
'libANGLE/Query.cpp', 'libANGLE/Query.cpp',
...@@ -206,8 +208,6 @@ ...@@ -206,8 +208,6 @@
'libANGLE/TransformFeedback.h', 'libANGLE/TransformFeedback.h',
'libANGLE/Uniform.cpp', 'libANGLE/Uniform.cpp',
'libANGLE/Uniform.h', 'libANGLE/Uniform.h',
'libANGLE/UniformLinker.cpp',
'libANGLE/UniformLinker.h',
'libANGLE/VaryingPacking.cpp', 'libANGLE/VaryingPacking.cpp',
'libANGLE/VaryingPacking.h', 'libANGLE/VaryingPacking.h',
'libANGLE/Version.h', 'libANGLE/Version.h',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment