Remove more obsolete machinery from PixelProcessor
Bug: b/124177079
Change-Id: Ibe657d802c38b84bf2017a8aeaf38f887910bc60
Reviewed-on: https://swiftshader-review.googlesource.com/c/24596
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Chris Forbes <chrisforbes@google.com>
diff --git a/src/Device/PixelProcessor.cpp b/src/Device/PixelProcessor.cpp
index c74e2f8..23d1ae3 100644
--- a/src/Device/PixelProcessor.cpp
+++ b/src/Device/PixelProcessor.cpp
@@ -76,39 +76,6 @@
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 @@
state.frontFaceCCW = context->frontFacingCCW;
- const bool point = context->isDrawPoint();
-
state.hash = state.computeHash();
return state;
diff --git a/src/Device/PixelProcessor.hpp b/src/Device/PixelProcessor.hpp
index a0c2df2..8c459e4 100644
--- a/src/Device/PixelProcessor.hpp
+++ b/src/Device/PixelProcessor.hpp
@@ -236,11 +236,6 @@
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 @@
};
UniformBufferInfo uniformBufferInfo[MAX_UNIFORM_BUFFER_BINDINGS];
- void setFogRanges(float start, float end);
-
Context *const context;
RoutineCache<State> *routineCache;