Commit 31ed57da by Chris Forbes

Remove more obsolete machinery from PixelProcessor

Bug: b/124177079 Change-Id: Ibe657d802c38b84bf2017a8aeaf38f887910bc60 Reviewed-on: https://swiftshader-review.googlesource.com/c/24596Reviewed-by: 's avatarBen Clayton <bclayton@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarChris Forbes <chrisforbes@google.com>
parent 81d19c96
......@@ -76,39 +76,6 @@ namespace sw
routineCache = nullptr;
}
void PixelProcessor::setFloatConstant(unsigned int index, const float value[4])
{
if(index < FRAGMENT_UNIFORM_VECTORS)
{
c[index][0] = value[0];
c[index][1] = value[1];
c[index][2] = value[2];
c[index][3] = value[3];
}
else ASSERT(false);
}
void PixelProcessor::setIntegerConstant(unsigned int index, const int value[4])
{
if(index < 16)
{
i[index][0] = value[0];
i[index][1] = value[1];
i[index][2] = value[2];
i[index][3] = value[3];
}
else ASSERT(false);
}
void PixelProcessor::setBooleanConstant(unsigned int index, int boolean)
{
if(index < 16)
{
b[index] = boolean != 0;
}
else ASSERT(false);
}
void PixelProcessor::setUniformBuffer(int index, sw::Resource* buffer, int offset)
{
uniformBufferInfo[index].buffer = buffer;
......@@ -705,8 +672,6 @@ namespace sw
state.frontFaceCCW = context->frontFacingCCW;
const bool point = context->isDrawPoint();
state.hash = state.computeHash();
return state;
......
......@@ -236,11 +236,6 @@ namespace sw
Routine *routine(const State &state);
void setRoutineCacheSize(int routineCacheSize);
// Shader constants
float4 c[FRAGMENT_UNIFORM_VECTORS];
int4 i[16];
bool b[16];
// Other semi-constants
Stencil stencil;
Stencil stencilCCW;
......@@ -256,8 +251,6 @@ namespace sw
};
UniformBufferInfo uniformBufferInfo[MAX_UNIFORM_BUFFER_BINDINGS];
void setFogRanges(float start, float end);
Context *const context;
RoutineCache<State> *routineCache;
......
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