mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
Enable use_tint_generator by default, disable shader_float16
Float16 is not standardized in WGSL or implemented in Tint, so remove support of the extension for now. Bug: dawn:571, dawn:426 Change-Id: Ia26f0ddb07cabf6057c0d7db9ade547494d2cc6e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/56441 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
@@ -1336,6 +1336,7 @@ namespace dawn_native {
|
||||
void DeviceBase::SetDefaultToggles() {
|
||||
SetToggle(Toggle::LazyClearResourceOnFirstUse, true);
|
||||
SetToggle(Toggle::DisallowUnsafeAPIs, true);
|
||||
SetToggle(Toggle::UseTintGenerator, true);
|
||||
}
|
||||
|
||||
void DeviceBase::ApplyToggleOverrides(const DeviceDescriptor* deviceDescriptor) {
|
||||
|
||||
@@ -108,9 +108,6 @@ namespace dawn_native { namespace d3d12 {
|
||||
mSupportedExtensions.EnableExtension(Extension::TextureCompressionBC);
|
||||
mSupportedExtensions.EnableExtension(Extension::PipelineStatisticsQuery);
|
||||
mSupportedExtensions.EnableExtension(Extension::TimestampQuery);
|
||||
if (mDeviceInfo.supportsShaderFloat16 && GetBackend()->GetFunctions()->IsDXCAvailable()) {
|
||||
mSupportedExtensions.EnableExtension(Extension::ShaderFloat16);
|
||||
}
|
||||
mSupportedExtensions.EnableExtension(Extension::MultiPlanarFormats);
|
||||
}
|
||||
|
||||
|
||||
@@ -546,7 +546,6 @@ namespace dawn_native { namespace d3d12 {
|
||||
SetToggle(Toggle::UseD3D12RenderPass, GetDeviceInfo().supportsRenderPass);
|
||||
SetToggle(Toggle::UseD3D12ResidencyManagement, true);
|
||||
SetToggle(Toggle::UseDXC, false);
|
||||
SetToggle(Toggle::UseTintGenerator, false);
|
||||
|
||||
#if defined(_DEBUG)
|
||||
// Enable better shader debugging with the graphics debugging tools.
|
||||
|
||||
@@ -234,8 +234,6 @@ namespace dawn_native { namespace metal {
|
||||
if (@available(macOS 10.11, iOS 11.0, *)) {
|
||||
mSupportedExtensions.EnableExtension(Extension::DepthClamping);
|
||||
}
|
||||
|
||||
mSupportedExtensions.EnableExtension(Extension::ShaderFloat16);
|
||||
}
|
||||
|
||||
NSPRef<id<MTLDevice>> mDevice;
|
||||
|
||||
@@ -243,14 +243,6 @@ namespace dawn_native { namespace vulkan {
|
||||
mSupportedExtensions.EnableExtension(Extension::TextureCompressionBC);
|
||||
}
|
||||
|
||||
if (mDeviceInfo.HasExt(DeviceExt::ShaderFloat16Int8) &&
|
||||
mDeviceInfo.shaderFloat16Int8Features.shaderFloat16 == VK_TRUE &&
|
||||
mDeviceInfo.HasExt(DeviceExt::_16BitStorage) &&
|
||||
mDeviceInfo._16BitStorageFeatures.storageBuffer16BitAccess == VK_TRUE &&
|
||||
mDeviceInfo._16BitStorageFeatures.uniformAndStorageBuffer16BitAccess == VK_TRUE) {
|
||||
mSupportedExtensions.EnableExtension(Extension::ShaderFloat16);
|
||||
}
|
||||
|
||||
if (mDeviceInfo.features.pipelineStatisticsQuery == VK_TRUE) {
|
||||
mSupportedExtensions.EnableExtension(Extension::PipelineStatisticsQuery);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user