Migrate Dawn fuzzers to using new SPVC split API

Roll third_party/shaderc/ c9d5be6b0..0865050e5 (3 commits)

c9d5be6b01..0865050e54

$ git log c9d5be6b0..0865050e5 --date=short --no-merges --format='%ad %ae %s'
2019-11-12 rharrison Split spvc shader generation into initialize and compile phases (#882)
2019-11-12 9856269+sarahM0 opName - opStruct (#880)
2019-11-12 rharrison Rolling 5 dependencies and updating expectations (#879)

Created with:
  roll-dep third_party/shaderc

Change-Id: Iea431b36973ac1fbfe68f1353e538ca4ca5ca910
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/13423
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
Ryan Harrison 2019-11-13 15:37:47 +00:00 committed by Commit Bot service account
parent cfdbaaa376
commit 9e7107eb96
4 changed files with 13 additions and 4 deletions

2
DEPS
View File

@ -68,7 +68,7 @@ deps = {
'condition': 'dawn_standalone',
},
'third_party/shaderc': {
'url': '{chromium_git}/external/github.com/google/shaderc@c9d5be6b01708bf7d8a8401a7edb98bf3ab82f17',
'url': '{chromium_git}/external/github.com/google/shaderc@0865050e54e93bb1b0f122780246892a1164bb26',
'condition': 'dawn_standalone',
},

View File

@ -34,7 +34,10 @@ namespace {
// Using the options that are used by Dawn, they appear in ShaderModuleGL.cpp
options.SetGLSLLanguageVersion(440);
options.SetFixupClipspace(true);
context.CompileSpvToGlsl(input.data(), input.size(), options, &result);
if (context.InitializeForGlsl(input.data(), input.size(), options) ==
shaderc_compilation_status_success) {
context.CompileShader(&result);
}
});
return 0;

View File

@ -40,7 +40,10 @@ namespace {
// See https://github.com/gpuweb/gpuweb/issues/332
options.SetHLSLPointCoordCompat(true);
options.SetHLSLPointSizeCompat(true);
context.CompileSpvToHlsl(input.data(), input.size(), options, &result);
if (context.InitializeForHlsl(input.data(), input.size(), options) ==
shaderc_compilation_status_success) {
context.CompileShader(&result);
}
});
return 0;

View File

@ -33,7 +33,10 @@ namespace {
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
context.CompileSpvToMsl(input.data(), input.size(), options, &result);
if (context.InitializeForMsl(input.data(), input.size(), options) ==
shaderc_compilation_status_success) {
context.CompileShader(&result);
}
});
return 0;