0

gpu: Enable Tint SPIRV reader for Graphite Dawn

Skia Graphite's Dawn backend uses SPIRV shaders so Tint support needs to
be enabled. This code path is disabled by default, both via build and
feature flags so this change is a no-op for default Chromium builds.

Bug: 1423574
Change-Id: I537f8c77b2e43e377b30cf2257ea1ed0aeadd6a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4471307
Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org>
Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
Auto-Submit: Sunny Sachanandani <sunnyps@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1134988}
This commit is contained in:
Sunny Sachanandani
2023-04-25 02:15:20 +00:00
committed by Chromium LUCI CQ
parent 389f0fdb4d
commit 07047c8e95

@ -2,12 +2,14 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//skia/features.gni")
tint_root_dir = "//third_party/dawn"
tint_spirv_tools_dir = "//third_party/vulkan-deps/spirv-tools/src"
tint_googletest_dir = "//third_party/googletest/src"
tint_spirv_headers_dir = "//third_party/vulkan-deps/spirv-headers/src"
tint_build_spv_reader = false
tint_build_spv_reader = skia_use_dawn
tint_build_spv_writer = true
tint_build_wgsl_reader = true
tint_build_wgsl_writer = true