mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 15:16:16 +00:00
ast: Remove unsupported texel formats
Fixed: tint:1361 Change-Id: Idcf98713d9a380e56811bea6419913714d602103 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/75582 Reviewed-by: David Neto <dneto@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Tint LUCI CQ
parent
3cbb136b8a
commit
4d245d9a36
@@ -1316,7 +1316,7 @@ TEST_F(ResolverDependencyGraphTraversalTest, SymbolsReached) {
|
||||
Global(Sym(), ty.external_texture());
|
||||
Global(Sym(), ty.multisampled_texture(ast::TextureDimension::k2d, T));
|
||||
Global(Sym(), ty.storage_texture(ast::TextureDimension::k2d,
|
||||
ast::TexelFormat::kR16Float,
|
||||
ast::TexelFormat::kR32Float,
|
||||
ast::Access::kRead)); //
|
||||
Global(Sym(), ty.sampler(ast::SamplerKind::kSampler));
|
||||
Func(Sym(), {}, ty.void_(), {});
|
||||
|
||||
@@ -222,7 +222,7 @@ inline std::ostream& operator<<(std::ostream& out, Texture data) {
|
||||
struct TextureTestParams {
|
||||
ast::TextureDimension dim;
|
||||
Texture type = Texture::kF32;
|
||||
ast::TexelFormat format = ast::TexelFormat::kR16Float;
|
||||
ast::TexelFormat format = ast::TexelFormat::kR32Float;
|
||||
};
|
||||
inline std::ostream& operator<<(std::ostream& out, TextureTestParams data) {
|
||||
out << data.dim << "_" << data.type;
|
||||
|
||||
@@ -861,30 +861,12 @@ struct FormatParams {
|
||||
};
|
||||
|
||||
static constexpr FormatParams format_cases[] = {
|
||||
FormatParams{ast::TexelFormat::kBgra8Unorm, false},
|
||||
FormatParams{ast::TexelFormat::kBgra8UnormSrgb, false},
|
||||
FormatParams{ast::TexelFormat::kR16Float, false},
|
||||
FormatParams{ast::TexelFormat::kR16Sint, false},
|
||||
FormatParams{ast::TexelFormat::kR16Uint, false},
|
||||
FormatParams{ast::TexelFormat::kR32Float, true},
|
||||
FormatParams{ast::TexelFormat::kR32Sint, true},
|
||||
FormatParams{ast::TexelFormat::kR32Uint, true},
|
||||
FormatParams{ast::TexelFormat::kR8Sint, false},
|
||||
FormatParams{ast::TexelFormat::kR8Snorm, false},
|
||||
FormatParams{ast::TexelFormat::kR8Uint, false},
|
||||
FormatParams{ast::TexelFormat::kR8Unorm, false},
|
||||
FormatParams{ast::TexelFormat::kRg11B10Float, false},
|
||||
FormatParams{ast::TexelFormat::kRg16Float, false},
|
||||
FormatParams{ast::TexelFormat::kRg16Sint, false},
|
||||
FormatParams{ast::TexelFormat::kRg16Uint, false},
|
||||
FormatParams{ast::TexelFormat::kRg32Float, true},
|
||||
FormatParams{ast::TexelFormat::kRg32Sint, true},
|
||||
FormatParams{ast::TexelFormat::kRg32Uint, true},
|
||||
FormatParams{ast::TexelFormat::kRg8Sint, false},
|
||||
FormatParams{ast::TexelFormat::kRg8Snorm, false},
|
||||
FormatParams{ast::TexelFormat::kRg8Uint, false},
|
||||
FormatParams{ast::TexelFormat::kRg8Unorm, false},
|
||||
FormatParams{ast::TexelFormat::kRgb10A2Unorm, false},
|
||||
FormatParams{ast::TexelFormat::kRgba16Float, true},
|
||||
FormatParams{ast::TexelFormat::kRgba16Sint, true},
|
||||
FormatParams{ast::TexelFormat::kRgba16Uint, true},
|
||||
@@ -894,8 +876,7 @@ static constexpr FormatParams format_cases[] = {
|
||||
FormatParams{ast::TexelFormat::kRgba8Sint, true},
|
||||
FormatParams{ast::TexelFormat::kRgba8Snorm, true},
|
||||
FormatParams{ast::TexelFormat::kRgba8Uint, true},
|
||||
FormatParams{ast::TexelFormat::kRgba8Unorm, true},
|
||||
FormatParams{ast::TexelFormat::kRgba8UnormSrgb, false}};
|
||||
FormatParams{ast::TexelFormat::kRgba8Unorm, true}};
|
||||
|
||||
using StorageTextureFormatTest = ResolverTestWithParam<FormatParams>;
|
||||
TEST_P(StorageTextureFormatTest, All) {
|
||||
|
||||
Reference in New Issue
Block a user