Home
last modified time | relevance | path

Searched refs:FormatMode (Results 1 – 22 of 22) sorted by relevance

/external/deqp-deps/amber/src/
Dtype_parser_test.cc32 FormatMode mode; in TEST_F()
41 {FormatComponentType::kA, FormatMode::kUNorm, 1}, in TEST_F()
42 {FormatComponentType::kR, FormatMode::kUNorm, 5}, in TEST_F()
43 {FormatComponentType::kG, FormatMode::kUNorm, 5}, in TEST_F()
44 {FormatComponentType::kB, FormatMode::kUNorm, 5}, in TEST_F()
51 {FormatComponentType::kA, FormatMode::kSInt, 2}, in TEST_F()
52 {FormatComponentType::kB, FormatMode::kSInt, 10}, in TEST_F()
53 {FormatComponentType::kG, FormatMode::kSInt, 10}, in TEST_F()
54 {FormatComponentType::kR, FormatMode::kSInt, 10}, in TEST_F()
61 {FormatComponentType::kA, FormatMode::kSNorm, 2}, in TEST_F()
[all …]
Dtype_test.cc25 Number i(FormatMode::kSInt, 16); in TEST_F()
44 EXPECT_FALSE(Number(FormatMode::kSInt).IsStruct()); in TEST_F()
50 EXPECT_TRUE(Number(FormatMode::kSInt).IsNumber()); in TEST_F()
56 EXPECT_FALSE(Number(FormatMode::kSInt).IsList()); in TEST_F()
62 Number i(FormatMode::kSInt, 16); in TEST_F()
75 Number i(FormatMode::kSInt, 16); in TEST_F()
87 Number i(FormatMode::kSInt, 32); in TEST_F()
95 Number i(FormatMode::kSInt, 32); in TEST_F()
104 Number i(FormatMode::kSInt, 32); in TEST_F()
112 Number n1(FormatMode::kSFloat, 32); in TEST_F()
[all …]
Dtype.h38 static bool IsSignedInt(FormatMode mode) { in IsSignedInt()
39 return mode == FormatMode::kSInt || mode == FormatMode::kSNorm || in IsSignedInt()
40 mode == FormatMode::kSScaled; in IsSignedInt()
43 static bool IsUnsignedInt(FormatMode mode) { in IsUnsignedInt()
44 return mode == FormatMode::kUInt || mode == FormatMode::kUNorm || in IsUnsignedInt()
45 mode == FormatMode::kUScaled || mode == FormatMode::kSRGB; in IsUnsignedInt()
48 static bool IsInt(FormatMode mode) { in IsInt()
52 static bool IsFloat(FormatMode mode) { in IsFloat()
53 return mode == FormatMode::kSFloat || mode == FormatMode::kUFloat; in IsFloat()
56 static bool IsInt8(FormatMode mode, uint32_t num_bits) { in IsInt8()
[all …]
Dformat_test.cc271 EXPECT_EQ(FormatMode::kUInt, segs[0].GetFormatMode()); in TEST_F()
285 EXPECT_EQ(FormatMode::kUInt, segs[0].GetFormatMode()); in TEST_F()
287 EXPECT_EQ(FormatMode::kUInt, segs[1].GetFormatMode()); in TEST_F()
301 EXPECT_EQ(FormatMode::kUInt, segs[0].GetFormatMode()); in TEST_F()
303 EXPECT_EQ(FormatMode::kUInt, segs[1].GetFormatMode()); in TEST_F()
305 EXPECT_EQ(FormatMode::kUInt, segs[2].GetFormatMode()); in TEST_F()
321 EXPECT_EQ(FormatMode::kUInt, segs[0].GetFormatMode()); in TEST_F()
323 EXPECT_EQ(FormatMode::kUInt, segs[1].GetFormatMode()); in TEST_F()
325 EXPECT_EQ(FormatMode::kUInt, segs[2].GetFormatMode()); in TEST_F()
342 EXPECT_EQ(FormatMode::kSFloat, segs[0].GetFormatMode()); in TEST_F()
[all …]
Dtype_parser.cc73 mode_ = FormatMode::kSInt; in Parse()
80 FormatMode mode, in AddPiece()
104 mode_ = FormatMode::kUInt; in ProcessChunk()
106 mode_ = FormatMode::kUNorm; in ProcessChunk()
108 mode_ = FormatMode::kUFloat; in ProcessChunk()
110 mode_ = FormatMode::kUScaled; in ProcessChunk()
119 mode_ = FormatMode::kSInt; in ProcessChunk()
121 mode_ = FormatMode::kSNorm; in ProcessChunk()
123 mode_ = FormatMode::kSScaled; in ProcessChunk()
125 mode_ = FormatMode::kSFloat; in ProcessChunk()
[all …]
Dtype_parser.h45 void AddPiece(FormatComponentType type, FormatMode mode, uint8_t bits);
46 void FlushPieces(type::Type* type, FormatMode mode);
49 Pieces(FormatComponentType t, FormatMode m, uint8_t bits) in Pieces()
53 FormatMode mode;
57 FormatMode mode_ = FormatMode::kSInt;
Dtype.cc55 return MakeUnique<Number>(FormatMode::kSInt, bits); in Int()
60 return MakeUnique<Number>(FormatMode::kUInt, bits); in Uint()
65 return MakeUnique<Number>(FormatMode::kSFloat, bits); in Float()
68 Number::Number(FormatMode format_mode) : format_mode_(format_mode) {} in Number()
70 Number::Number(FormatMode format_mode, uint32_t bits) in Number()
Dformat.h48 Segment(FormatComponentType name, FormatMode mode, uint32_t num_bits) in Segment()
55 FormatMode GetFormatMode() const { return mode_; } in GetFormatMode()
71 FormatMode mode_ = FormatMode::kSInt;
79 static bool IsNormalized(FormatMode mode) { in IsNormalized()
80 return mode == FormatMode::kUNorm || mode == FormatMode::kSNorm || in IsNormalized()
81 mode == FormatMode::kSRGB; in IsNormalized()
Dformat.cc26 std::string FormatModeToName(FormatMode mode) { in FormatModeToName()
28 case FormatMode::kUNorm: in FormatModeToName()
30 case FormatMode::kUInt: in FormatModeToName()
32 case FormatMode::kUScaled: in FormatModeToName()
34 case FormatMode::kSInt: in FormatModeToName()
36 case FormatMode::kSNorm: in FormatModeToName()
38 case FormatMode::kSScaled: in FormatModeToName()
40 case FormatMode::kSRGB: in FormatModeToName()
42 case FormatMode::kSFloat: in FormatModeToName()
44 case FormatMode::kUFloat: in FormatModeToName()
[all …]
Dverifier.cc229 FormatMode mode = seg.GetFormatMode(); in GetActualValuesFromTexel()
292 if (seg.GetFormatMode() == FormatMode::kUNorm) { in ScaleTexelValuesIfNeeded()
294 } else if (seg.GetFormatMode() == FormatMode::kSNorm) { in ScaleTexelValuesIfNeeded()
296 } else if (seg.GetFormatMode() == FormatMode::kSRGB) { in ScaleTexelValuesIfNeeded()
300 } else if (seg.GetFormatMode() == FormatMode::kSScaled || in ScaleTexelValuesIfNeeded()
301 seg.GetFormatMode() == FormatMode::kUScaled) { in ScaleTexelValuesIfNeeded()
568 FormatMode mode = segment.GetFormatMode(); in ProbeSSBO()
Dverifier_test.cc488 list->AddMember(FormatComponentType::kR, FormatMode::kSFloat, 16); in TEST_F()
489 list->AddMember(FormatComponentType::kG, FormatMode::kSFloat, 11); in TEST_F()
490 list->AddMember(FormatComponentType::kB, FormatMode::kSFloat, 10); in TEST_F()
530 list->AddMember(FormatComponentType::kR, FormatMode::kSFloat, 11); in TEST_F()
531 list->AddMember(FormatComponentType::kG, FormatMode::kSFloat, 16); in TEST_F()
532 list->AddMember(FormatComponentType::kB, FormatMode::kSFloat, 10); in TEST_F()
572 list->AddMember(FormatComponentType::kR, FormatMode::kSFloat, 10); in TEST_F()
573 list->AddMember(FormatComponentType::kG, FormatMode::kSFloat, 11); in TEST_F()
574 list->AddMember(FormatComponentType::kB, FormatMode::kSFloat, 16); in TEST_F()
Dformat_data.h28 enum class FormatMode { enum
Dbuffer.cc41 FormatMode mode = seg->GetFormatMode(); in CalculateDiff()
340 FormatMode mode, in WriteValueFromComponent()
Dbuffer.h253 FormatMode mode,
/external/deqp-deps/amber/src/vkscript/
Ddatum_type_parser_test.cc24 bool AllCompsAreType(Format* fmt, FormatMode mode, uint8_t num_bits) { in AllCompsAreType()
55 FormatMode type;
79 testing::Values(DatumTypeData{"int", FormatMode::kSInt, 32, 1, 1},
80 DatumTypeData{"uint", FormatMode::kUInt, 32, 1, 1},
81 DatumTypeData{"int8_t", FormatMode::kSInt, 8, 1, 1},
82 DatumTypeData{"uint8_t", FormatMode::kUInt, 8, 1, 1},
83 DatumTypeData{"int16_t", FormatMode::kSInt, 16, 1, 1},
84 DatumTypeData{"uint16_t", FormatMode::kUInt, 16, 1, 1},
85 DatumTypeData{"int64_t", FormatMode::kSInt, 64, 1, 1},
86 DatumTypeData{"uint64_t", FormatMode::kUInt, 64, 1, 1},
[all …]
Ddatum_type_parser.cc52 FormatMode mode = FormatMode::kSFloat; in Parse()
57 mode = FormatMode::kSInt; in Parse()
59 mode = FormatMode::kUInt; in Parse()
91 if (mode == FormatMode::kSFloat) in Parse()
93 else if (mode == FormatMode::kSInt) in Parse()
Dparser_test.cc375 EXPECT_EQ(FormatMode::kSFloat, segs1[0].GetFormatMode()); in TEST_F()
376 EXPECT_EQ(FormatMode::kSFloat, segs1[1].GetFormatMode()); in TEST_F()
384 EXPECT_EQ(FormatMode::kSInt, segs2[0].GetFormatMode()); in TEST_F()
385 EXPECT_EQ(FormatMode::kSInt, segs2[1].GetFormatMode()); in TEST_F()
386 EXPECT_EQ(FormatMode::kSInt, segs2[2].GetFormatMode()); in TEST_F()
Dparser.cc414 if (seg.GetFormatMode() == FormatMode::kUFloat || in ProcessVertexDataBlock()
415 seg.GetFormatMode() == FormatMode::kSFloat) { in ProcessVertexDataBlock()
/external/deqp-deps/amber/src/amberscript/
Dparser_buffer_test.cc666 EXPECT_EQ(segs[i].GetFormatMode(), FormatMode::kSInt); in TEST_F()
784 FormatMode type;
822 BufferData{"int8", FormatMode::kSInt, 8, 1, 1, false},
823 BufferData{"int16", FormatMode::kSInt, 16, 1, 1, false},
824 BufferData{"int32", FormatMode::kSInt, 32, 1, 1, false},
825 BufferData{"int64", FormatMode::kSInt, 64, 1, 1, false},
826 BufferData{"uint8", FormatMode::kUInt, 8, 1, 1, false},
827 BufferData{"uint16", FormatMode::kUInt, 16, 1, 1, false},
828 BufferData{"uint32", FormatMode::kUInt, 32, 1, 1, false},
829 BufferData{"uint64", FormatMode::kUInt, 64, 1, 1, false},
[all …]
Dparser.cc2226 FormatMode mode = n->GetFormatMode(); in ParseBufferInitializerSeries()
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/testing/
Dtester.cc162 static std::string FormatMode(Regexp::ParseFlags flags) { in FormatMode() function
192 << " mode: " << FormatMode(flags); in TestInstance()
208 << ", " << FormatMode(flags_) in TestInstance()
514 << " " << FormatMode(flags_); in RunCase()
521 << ", " << FormatMode(flags_) in RunCase()
605 << ", " << FormatMode(flags_) in LogMatch()
/external/rust/crates/grpcio-sys/grpc/third_party/re2/
Ducs2.diff369 static string FormatMode(Regexp::ParseFlags flags) {
376 - << " mode: " << FormatMode(flags);
380 + << " mode: " << FormatMode(flags);
567 << " " << FormatMode(flags_);