native: Use @interpolate(flat, either) for BlitColorToColorWithDraw
@interpolate(flat) is not supported in compat mode because it's default
to @interpolate(flat, first). Use "either" so that it works for both
core & compat mode.
Bug: 417770951
Change-Id: Ia2c4d49dc2c004d62bb981a6534eb793cf7ad4dd
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/251654
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Quyen Le <lehoangquyen@chromium.org>
Auto-Submit: Quyen Le <lehoangquyen@chromium.org>
diff --git a/src/dawn/native/BlitColorToColorWithDraw.cpp b/src/dawn/native/BlitColorToColorWithDraw.cpp
index 15ed482..2f15421 100644
--- a/src/dawn/native/BlitColorToColorWithDraw.cpp
+++ b/src/dawn/native/BlitColorToColorWithDraw.cpp
@@ -53,7 +53,7 @@
constexpr std::string_view kVertexOutputsStruct = R"(
struct VertexOutputs {
@builtin(position) position : vec4<f32>,
- @location(0) @interpolate(flat) offsets : vec2i,
+ @location(0) @interpolate(flat, either) offsets : vec2i,
};
)";