Explictly set the environment for the Fast fuzzers
BUG=chromium:970300 Change-Id: Ib57a2dcd92a378412588901df9cadc271cad18d4 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/8001 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
parent
05f7ad5ac8
commit
903fc2b049
|
@ -26,8 +26,11 @@ namespace {
|
||||||
}
|
}
|
||||||
|
|
||||||
DawnSPIRVCrossFuzzer::ExecuteWithSignalTrap([&compiler, &input]() {
|
DawnSPIRVCrossFuzzer::ExecuteWithSignalTrap([&compiler, &input]() {
|
||||||
// Using the options that are used by Dawn, they appear in ShaderModuleGL.cpp
|
|
||||||
shaderc_spvc::CompileOptions options;
|
shaderc_spvc::CompileOptions options;
|
||||||
|
options.SetSourceEnvironment(shaderc_target_env_webgpu, shaderc_env_version_webgpu);
|
||||||
|
options.SetTargetEnvironment(shaderc_target_env_vulkan, shaderc_env_version_vulkan_1_1);
|
||||||
|
|
||||||
|
// Using the options that are used by Dawn, they appear in ShaderModuleGL.cpp
|
||||||
options.SetGLSLLanguageVersion(440);
|
options.SetGLSLLanguageVersion(440);
|
||||||
options.SetFixupClipspace(true);
|
options.SetFixupClipspace(true);
|
||||||
compiler.CompileSpvToGlsl(input.data(), input.size(), options);
|
compiler.CompileSpvToGlsl(input.data(), input.size(), options);
|
||||||
|
|
|
@ -28,6 +28,8 @@ namespace {
|
||||||
|
|
||||||
DawnSPIRVCrossFuzzer::ExecuteWithSignalTrap([&compiler, &input]() {
|
DawnSPIRVCrossFuzzer::ExecuteWithSignalTrap([&compiler, &input]() {
|
||||||
shaderc_spvc::CompileOptions options;
|
shaderc_spvc::CompileOptions options;
|
||||||
|
options.SetSourceEnvironment(shaderc_target_env_webgpu, shaderc_env_version_webgpu);
|
||||||
|
options.SetTargetEnvironment(shaderc_target_env_vulkan, shaderc_env_version_vulkan_1_1);
|
||||||
|
|
||||||
// Using the options that are used by Dawn, they appear in ShaderModuleD3D12.cpp
|
// Using the options that are used by Dawn, they appear in ShaderModuleD3D12.cpp
|
||||||
options.SetFlipVertY(true);
|
options.SetFlipVertY(true);
|
||||||
|
|
|
@ -28,6 +28,8 @@ namespace {
|
||||||
|
|
||||||
DawnSPIRVCrossFuzzer::ExecuteWithSignalTrap([&compiler, &input]() {
|
DawnSPIRVCrossFuzzer::ExecuteWithSignalTrap([&compiler, &input]() {
|
||||||
shaderc_spvc::CompileOptions options;
|
shaderc_spvc::CompileOptions options;
|
||||||
|
options.SetSourceEnvironment(shaderc_target_env_webgpu, shaderc_env_version_webgpu);
|
||||||
|
options.SetTargetEnvironment(shaderc_target_env_vulkan, shaderc_env_version_vulkan_1_1);
|
||||||
|
|
||||||
// Using the options that are used by Dawn, they appear in ShaderModuleMTL.mm
|
// Using the options that are used by Dawn, they appear in ShaderModuleMTL.mm
|
||||||
options.SetFlipVertY(true);
|
options.SetFlipVertY(true);
|
||||||
|
|
Loading…
Reference in New Issue