[YUV AHB] Remove unused PipelineLayout getters. Bug: 468988322 Change-Id: I1c0a08e8f1c3faaabc3e8949d584b667da30ada3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/297695 Reviewed-by: Loko Kung <lokokung@google.com> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
diff --git a/src/dawn/native/PipelineLayout.cpp b/src/dawn/native/PipelineLayout.cpp index 12cfbb0..4c325d0 100644 --- a/src/dawn/native/PipelineLayout.cpp +++ b/src/dawn/native/PipelineLayout.cpp
@@ -201,21 +201,6 @@ if (auto* rt = descriptor.Get<PipelineLayoutResourceTable>()) { mUsesResourceTable = rt->usesResourceTable; } - - BindingCounts bindingCounts = {}; - for (BindGroupIndex i : mMask) { - AccumulateBindingCounts( - &bindingCounts, - mBindGroupLayouts[i]->GetInternalBindGroupLayout()->GetValidationBindingCounts()); - } - mNumStorageBufferBindingsInVertexStage = - bindingCounts.perStage[SingleShaderStage::Vertex].storageBufferCount; - mNumStorageTextureBindingsInVertexStage = - bindingCounts.perStage[SingleShaderStage::Vertex].storageTextureCount; - mNumStorageBufferBindingsInFragmentStage = - bindingCounts.perStage[SingleShaderStage::Fragment].storageBufferCount; - mNumStorageTextureBindingsInFragmentStage = - bindingCounts.perStage[SingleShaderStage::Fragment].storageTextureCount; } PipelineLayoutBase::PipelineLayoutBase(DeviceBase* device, @@ -787,22 +772,6 @@ return mImmediateDataRangeByteSize; } -uint32_t PipelineLayoutBase::GetNumStorageBufferBindingsInVertexStage() const { - return mNumStorageBufferBindingsInVertexStage; -} - -uint32_t PipelineLayoutBase::GetNumStorageTextureBindingsInVertexStage() const { - return mNumStorageTextureBindingsInVertexStage; -} - -uint32_t PipelineLayoutBase::GetNumStorageBufferBindingsInFragmentStage() const { - return mNumStorageBufferBindingsInFragmentStage; -} - -uint32_t PipelineLayoutBase::GetNumStorageTextureBindingsInFragmentStage() const { - return mNumStorageTextureBindingsInFragmentStage; -} - bool PipelineLayoutBase::UsesResourceTable() const { return mUsesResourceTable; }
diff --git a/src/dawn/native/PipelineLayout.h b/src/dawn/native/PipelineLayout.h index 39f6d0c..2266b91 100644 --- a/src/dawn/native/PipelineLayout.h +++ b/src/dawn/native/PipelineLayout.h
@@ -92,13 +92,10 @@ BindGroupLayoutBase* GetFrontendBindGroupLayout(BindGroupIndex group); const BindGroupLayoutInternalBase* GetBindGroupLayout(BindGroupIndex group) const; const BindGroupMask& GetBindGroupLayoutsMask() const; + bool HasPixelLocalStorage() const; const std::vector<wgpu::TextureFormat>& GetStorageAttachmentSlots() const; bool HasAnyStorageAttachments() const; - uint32_t GetNumStorageBufferBindingsInVertexStage() const; - uint32_t GetNumStorageTextureBindingsInVertexStage() const; - uint32_t GetNumStorageBufferBindingsInFragmentStage() const; - uint32_t GetNumStorageTextureBindingsInFragmentStage() const; bool UsesResourceTable() const; @@ -126,10 +123,6 @@ PerBindGroup<Ref<BindGroupLayoutBase>> mBindGroupLayouts; BindGroupMask mMask; bool mHasPLS = false; - uint32_t mNumStorageBufferBindingsInVertexStage = 0; - uint32_t mNumStorageTextureBindingsInVertexStage = 0; - uint32_t mNumStorageBufferBindingsInFragmentStage = 0; - uint32_t mNumStorageTextureBindingsInFragmentStage = 0; std::vector<wgpu::TextureFormat> mStorageAttachmentSlots; uint32_t mImmediateDataRangeByteSize = 0; bool mUsesResourceTable = false;