Remove deprecated APIs
Bug: None Change-Id: I77ac6660318bef1f9a245b3aee06a8e89a67e518 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/64540 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
92de2f0851
commit
bd04e15890
|
@ -125,12 +125,6 @@ namespace dawn_native {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderPassEncoder::APISetBlendColor(const Color* color) {
|
|
||||||
GetDevice()->EmitDeprecationWarning(
|
|
||||||
"SetBlendColor has been deprecated in favor of SetBlendConstant.");
|
|
||||||
APISetBlendConstant(color);
|
|
||||||
}
|
|
||||||
|
|
||||||
void RenderPassEncoder::APISetViewport(float x,
|
void RenderPassEncoder::APISetViewport(float x,
|
||||||
float y,
|
float y,
|
||||||
float width,
|
float width,
|
||||||
|
|
|
@ -41,7 +41,6 @@ namespace dawn_native {
|
||||||
|
|
||||||
void APISetStencilReference(uint32_t reference);
|
void APISetStencilReference(uint32_t reference);
|
||||||
void APISetBlendConstant(const Color* color);
|
void APISetBlendConstant(const Color* color);
|
||||||
void APISetBlendColor(const Color* color); // Deprecated
|
|
||||||
void APISetViewport(float x,
|
void APISetViewport(float x,
|
||||||
float y,
|
float y,
|
||||||
float width,
|
float width,
|
||||||
|
|
|
@ -75,19 +75,6 @@ namespace dawn_native { namespace vulkan {
|
||||||
ExternalImageExportInfoDmaBuf::ExternalImageExportInfoDmaBuf()
|
ExternalImageExportInfoDmaBuf::ExternalImageExportInfoDmaBuf()
|
||||||
: ExternalImageExportInfoFD(ExternalImageType::DmaBuf) {
|
: ExternalImageExportInfoFD(ExternalImageType::DmaBuf) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int ExportSignalSemaphoreOpaqueFD(WGPUDevice cDevice, WGPUTexture cTexture) {
|
|
||||||
// Doesn't actually matter if we use OpaqueFD or DmaBuf since these paths are the same right
|
|
||||||
// now. This function will be removed.
|
|
||||||
Device* device = reinterpret_cast<Device*>(cDevice);
|
|
||||||
device->EmitDeprecationWarning(
|
|
||||||
"ExportSignalSemaphoreOpaqueFD is deprecated. Please use ExportVulkanImage instead.");
|
|
||||||
ExternalImageExportInfoOpaqueFD info;
|
|
||||||
if (!ExportVulkanImage(cTexture, VK_IMAGE_LAYOUT_GENERAL, &info)) {
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
return info.semaphoreHandles[0];
|
|
||||||
}
|
|
||||||
#endif // DAWN_PLATFORM_LINUX
|
#endif // DAWN_PLATFORM_LINUX
|
||||||
|
|
||||||
WGPUTexture WrapVulkanImage(WGPUDevice cDevice, const ExternalImageDescriptorVk* descriptor) {
|
WGPUTexture WrapVulkanImage(WGPUDevice cDevice, const ExternalImageDescriptorVk* descriptor) {
|
||||||
|
|
|
@ -114,12 +114,6 @@ namespace dawn_native { namespace vulkan {
|
||||||
|
|
||||||
#endif // __linux__
|
#endif // __linux__
|
||||||
|
|
||||||
// Exports a signal semaphore from a wrapped texture. This must be called on wrapped
|
|
||||||
// textures before they are destroyed. On failure, returns -1
|
|
||||||
// TODO(enga): Remove after updating Chromium to use ExportVulkanImage.
|
|
||||||
DAWN_NATIVE_EXPORT int ExportSignalSemaphoreOpaqueFD(WGPUDevice cDevice,
|
|
||||||
WGPUTexture cTexture);
|
|
||||||
|
|
||||||
// Imports external memory into a Vulkan image. Internally, this uses external memory /
|
// Imports external memory into a Vulkan image. Internally, this uses external memory /
|
||||||
// semaphore extensions to import the image and wait on the provided synchronizaton
|
// semaphore extensions to import the image and wait on the provided synchronizaton
|
||||||
// primitives before the texture can be used.
|
// primitives before the texture can be used.
|
||||||
|
|
|
@ -12,11 +12,6 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// This file contains test for deprecated parts of Dawn's API while following WebGPU's evolution.
|
|
||||||
// It contains test for the "old" behavior that will be deleted once users are migrated, tests that
|
|
||||||
// a deprecation warning is emitted when the "old" behavior is used, and tests that an error is
|
|
||||||
// emitted when both the old and the new behavior are used (when applicable).
|
|
||||||
|
|
||||||
#include "tests/DawnTest.h"
|
#include "tests/DawnTest.h"
|
||||||
|
|
||||||
#include "utils/ComboRenderPipelineDescriptor.h"
|
#include "utils/ComboRenderPipelineDescriptor.h"
|
||||||
|
|
|
@ -12,11 +12,6 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// This file contains test for deprecated parts of Dawn's API while following WebGPU's evolution.
|
|
||||||
// It contains test for the "old" behavior that will be deleted once users are migrated, tests that
|
|
||||||
// a deprecation warning is emitted when the "old" behavior is used, and tests that an error is
|
|
||||||
// emitted when both the old and the new behavior are used (when applicable).
|
|
||||||
|
|
||||||
#include "tests/DawnTest.h"
|
#include "tests/DawnTest.h"
|
||||||
|
|
||||||
#include "common/Math.h"
|
#include "common/Math.h"
|
||||||
|
|
|
@ -18,8 +18,6 @@
|
||||||
|
|
||||||
namespace utils {
|
namespace utils {
|
||||||
|
|
||||||
// For creating deprecated render pipeline descriptors
|
|
||||||
|
|
||||||
ComboVertexState::ComboVertexState() {
|
ComboVertexState::ComboVertexState() {
|
||||||
vertexBufferCount = 0;
|
vertexBufferCount = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue