Remove render to 3d texture slices from unsafe apis

CTS for 3d texture slices was rolled to Chromium, we can remove this
from unsafe apis.

Bug: dawn:1020
Change-Id: I83b1cd3a2fc814573061f556e211a2f9414f7f4f
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/181063
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
diff --git a/src/dawn/native/Texture.cpp b/src/dawn/native/Texture.cpp
index 2950c78..1dbb297 100644
--- a/src/dawn/native/Texture.cpp
+++ b/src/dawn/native/Texture.cpp
@@ -371,13 +371,6 @@
                     "dimension (%s).",
                     usage, wgpu::TextureUsage::RenderAttachment, descriptor->dimension);
 
-    DAWN_INVALID_IF(!device->IsToggleEnabled(Toggle::AllowUnsafeAPIs) &&
-                        descriptor->dimension == wgpu::TextureDimension::e3D &&
-                        (usage & wgpu::TextureUsage::RenderAttachment),
-                    "The texture dimension must not be %s for a render attachment if "
-                    "allow_unsafe_apis is not enabled. See crbug.com/dawn/1020.",
-                    wgpu::TextureDimension::e3D);
-
     DAWN_INVALID_IF(
         !format->supportsStorageUsage && (usage & wgpu::TextureUsage::StorageBinding),
         "The texture usage (%s) includes %s, which is incompatible with the format (%s).", usage,
diff --git a/src/dawn/tests/unittests/validation/UnsafeAPIValidationTests.cpp b/src/dawn/tests/unittests/validation/UnsafeAPIValidationTests.cpp
index 3629d4d..b7129c7 100644
--- a/src/dawn/tests/unittests/validation/UnsafeAPIValidationTests.cpp
+++ b/src/dawn/tests/unittests/validation/UnsafeAPIValidationTests.cpp
@@ -70,16 +70,6 @@
     )"));
 }
 
-// Check that create 3D texture for the render attachment is validated as unsafe.
-TEST_F(UnsafeAPIValidationTest, Create3DTextureForRenderAttachment) {
-    wgpu::TextureDescriptor descriptor;
-    descriptor.dimension = wgpu::TextureDimension::e3D;
-    descriptor.size = {1, 1};
-    descriptor.format = wgpu::TextureFormat::RGBA8Unorm;
-    descriptor.usage = wgpu::TextureUsage::RenderAttachment;
-    ASSERT_DEVICE_ERROR(device.CreateTexture(&descriptor));
-}
-
 class TimestampQueryUnsafeAPIValidationTest : public ValidationTest {
   protected:
     WGPUDevice CreateTestDevice(native::Adapter dawnAdapter,