Remove unused parameter in vk bindDescriptorSets.
Change-Id: Ie377fcdca09023b71d1b8cce89db1d9f574df3be Reviewed-on: https://skia-review.googlesource.com/c/skia/+/338044 Commit-Queue: Greg Daniel <egdaniel@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: Greg Daniel <egdaniel@google.com> Reviewed-by: John Stiles <johnstiles@google.com>
This commit is contained in:
parent
dbc19ea84e
commit
1cf4bc796c
@ -258,7 +258,6 @@ void GrVkCommandBuffer::clearAttachments(const GrVkGpu* gpu,
|
||||
}
|
||||
|
||||
void GrVkCommandBuffer::bindDescriptorSets(const GrVkGpu* gpu,
|
||||
GrVkPipelineState* pipelineState,
|
||||
VkPipelineLayout layout,
|
||||
uint32_t firstSet,
|
||||
uint32_t setCount,
|
||||
|
@ -53,7 +53,6 @@ public:
|
||||
void bindPipeline(const GrVkGpu* gpu, const GrVkPipeline* pipeline);
|
||||
|
||||
void bindDescriptorSets(const GrVkGpu* gpu,
|
||||
GrVkPipelineState*,
|
||||
VkPipelineLayout layout,
|
||||
uint32_t firstSet,
|
||||
uint32_t setCount,
|
||||
|
@ -98,8 +98,9 @@ bool GrVkPipelineState::setAndBindUniforms(GrVkGpu* gpu,
|
||||
if (fUniformBuffer) {
|
||||
fDataManager.uploadUniformBuffers(gpu, fUniformBuffer.get());
|
||||
static const int kUniformDSIdx = GrVkUniformHandler::kUniformBufferDescSet;
|
||||
commandBuffer->bindDescriptorSets(gpu, this, fPipeline->layout(), kUniformDSIdx, 1,
|
||||
fUniformBuffer->descriptorSet(), 0, nullptr);
|
||||
commandBuffer->bindDescriptorSets(gpu, fPipeline->layout(), kUniformDSIdx, /*setCount=*/1,
|
||||
fUniformBuffer->descriptorSet(), /*dynamicOffsetCount=*/0,
|
||||
/*dynamicOffsets=*/nullptr);
|
||||
commandBuffer->addRecycledResource(fUniformBuffer->resource());
|
||||
}
|
||||
return true;
|
||||
@ -149,8 +150,10 @@ bool GrVkPipelineState::setAndBindTextures(GrVkGpu* gpu,
|
||||
commandBuffer->addResource(texture->textureView());
|
||||
commandBuffer->addResource(texture->resource());
|
||||
commandBuffer->addRecycledResource(descriptorSet);
|
||||
commandBuffer->bindDescriptorSets(gpu, this, fPipeline->layout(), kSamplerDSIdx, 1,
|
||||
descriptorSet->descriptorSet(), 0, nullptr);
|
||||
commandBuffer->bindDescriptorSets(gpu, fPipeline->layout(), kSamplerDSIdx,
|
||||
/*setCount=*/1, descriptorSet->descriptorSet(),
|
||||
/*dynamicOffsetCount=*/0,
|
||||
/*dynamicOffsets=*/nullptr);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -209,8 +212,9 @@ bool GrVkPipelineState::setAndBindTextures(GrVkGpu* gpu,
|
||||
texture->addDescriptorSetToCache(descriptorSet, state);
|
||||
}
|
||||
|
||||
commandBuffer->bindDescriptorSets(gpu, this, fPipeline->layout(), kSamplerDSIdx, 1,
|
||||
descriptorSet->descriptorSet(), 0, nullptr);
|
||||
commandBuffer->bindDescriptorSets(gpu, fPipeline->layout(), kSamplerDSIdx, /*setCount=*/1,
|
||||
descriptorSet->descriptorSet(),
|
||||
/*dynamicOffsetCount=*/0, /*dynamicOffsets=*/nullptr);
|
||||
commandBuffer->addRecycledResource(descriptorSet);
|
||||
descriptorSet->recycle();
|
||||
}
|
||||
@ -225,9 +229,8 @@ bool GrVkPipelineState::setAndBindInputAttachment(GrVkGpu* gpu,
|
||||
if (!descriptorSet) {
|
||||
return false;
|
||||
}
|
||||
commandBuffer->bindDescriptorSets(gpu, this, fPipeline->layout(),
|
||||
GrVkUniformHandler::kInputDescSet, /*setCount=*/1,
|
||||
descriptorSet->descriptorSet(),
|
||||
commandBuffer->bindDescriptorSets(gpu, fPipeline->layout(), GrVkUniformHandler::kInputDescSet,
|
||||
/*setCount=*/1, descriptorSet->descriptorSet(),
|
||||
/*dynamicOffsetCount=*/0, /*dynamicOffsets=*/nullptr);
|
||||
// We don't add the input resource to the command buffer to track since the input will be
|
||||
// the same as the color attachment which is already tracked on the command buffer.
|
||||
|
Loading…
Reference in New Issue
Block a user