Commit 1407297b by Ben Clayton

src/Pipeline/ComputeProgram: Remove unused parameter numDescriptorSets

Change-Id: I1881916302d6652144138106d0744e9bbd2b45c8 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/27008 Presubmit-Ready: Ben Clayton <bclayton@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarBen Clayton <bclayton@google.com>
parent dd2faaee
...@@ -137,8 +137,7 @@ namespace sw ...@@ -137,8 +137,7 @@ namespace sw
} }
void ComputeProgram::run( void ComputeProgram::run(
Routine *routine, Routine *routine, void** descriptorSets,
uint32_t numDescriptorSets, void** descriptorSets,
uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ) uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ)
{ {
auto runWorkgroup = (void(*)(void*))(routine->getEntry()); auto runWorkgroup = (void(*)(void*))(routine->getEntry());
......
...@@ -47,8 +47,7 @@ namespace sw ...@@ -47,8 +47,7 @@ namespace sw
// run executes the compute shader routine for all workgroups. // run executes the compute shader routine for all workgroups.
// TODO(bclayton): This probably does not belong here. Consider moving. // TODO(bclayton): This probably does not belong here. Consider moving.
static void run( static void run(
Routine *routine, Routine *routine, void** descriptorSets,
uint32_t numDescriptorSets, void** descriptorSets,
uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ); uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ);
protected: protected:
......
...@@ -573,8 +573,7 @@ void ComputePipeline::run(uint32_t groupCountX, uint32_t groupCountY, uint32_t g ...@@ -573,8 +573,7 @@ void ComputePipeline::run(uint32_t groupCountX, uint32_t groupCountY, uint32_t g
{ {
ASSERT_OR_RETURN(routine != nullptr); ASSERT_OR_RETURN(routine != nullptr);
sw::ComputeProgram::run( sw::ComputeProgram::run(
routine, routine, reinterpret_cast<void**>(descriptorSets),
numDescriptorSets, reinterpret_cast<void**>(descriptorSets),
groupCountX, groupCountY, groupCountZ); groupCountX, groupCountY, groupCountZ);
} }
......
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