/third_party/mesa3d/src/util/tests/format/ |
H A D | u_format_test.c | 78 const double unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4], in print_unpacked_rgba_doubl() 87 printf("%s{%f, %f, %f, %f}", sep, unpacked[i][j][0], unpacked[i][j][1], unpacked[i][j][2], unpacked[i][j][3]); in print_unpacked_rgba_doubl() 100 float unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4], in print_unpacked_rgba_float() 109 printf("%s{%f, %f, %f, %f}", sep, unpacked[i][j][0], unpacked[i][j][1], unpacked[i][j][2], unpacked[ in print_unpacked_rgba_float() 76 print_unpacked_rgba_doubl(const struct util_format_description *format_desc, const char *prefix, const double unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4], const char *suffix) print_unpacked_rgba_doubl() argument 98 print_unpacked_rgba_float(const struct util_format_description *format_desc, const char *prefix, float unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4], const char *suffix) print_unpacked_rgba_float() argument 120 print_unpacked_rgba_8unorm(const struct util_format_description *format_desc, const char *prefix, uint8_t unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4], const char *suffix) print_unpacked_rgba_8unorm() argument 141 print_unpacked_z_float(const struct util_format_description *format_desc, const char *prefix, float unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH], const char *suffix) print_unpacked_z_float() argument 163 print_unpacked_z_32unorm(const struct util_format_description *format_desc, const char *prefix, uint32_t unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH], const char *suffix) print_unpacked_z_32unorm() argument 184 print_unpacked_s_8uint(const struct util_format_description *format_desc, const char *prefix, uint8_t unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH], const char *suffix) print_unpacked_s_8uint() argument 210 float unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4] = { { { 0 } } }; test_format_fetch_rgba() local 244 float unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4] = { { { 0 } } }; test_format_unpack_rgba() local 283 float unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4]; test_format_pack_rgba_float() local 362 uint8_t unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4] = { { { 0 } } }; test_format_unpack_rgba_8unorm() local 406 uint8_t unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4]; test_format_pack_rgba_8unorm() local 470 float unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH] = { { 0 } }; test_format_unpack_z_float() local 502 float unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH]; test_format_pack_z_float() local 541 uint32_t unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH] = { { 0 } }; test_format_unpack_z_32unorm() local 580 uint32_t unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH]; test_format_pack_z_32unorm() local 620 uint8_t unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH] = { { 0 } }; test_format_unpack_s_8uint() local 659 uint8_t unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH]; test_format_pack_s_8uint() local [all...] |
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_test_format.c | 74 (*fetch_ptr_t)(void *unpacked, const void *packed, 147 alignas(16) float unpacked[4]; in test_format_float() local 186 memset(unpacked, 0, sizeof unpacked); in test_format_float() 188 fetch_ptr(unpacked, packed, j, i, use_cache ? cache_ptr : NULL); in test_format_float() 191 if (util_double_inf_sign(test->unpacked[i][j][k]) != util_inf_sign(unpacked[k])) { in test_format_float() 195 if (util_is_double_nan(test->unpacked[i][j][k]) != util_is_nan(unpacked[k])) { in test_format_float() 199 if (!util_is_double_inf_or_nan(test->unpacked[ in test_format_float() 251 uint8_t unpacked[4]; test_format_unorm8() local [all...] |
/third_party/mesa3d/src/panfrost/util/ |
H A D | pan_lower_framebuffer.c | 36 * type to a designated unpacked type, and vice versa. 38 * The unpacked type depends on the format: 56 /* Determines the unpacked type best suiting a given format, so the rest of the 127 /* Pure x16 formats are x16 unpacked, so it's similar, but we need to pack 144 nir_ssa_def *unpacked[4]; in pan_unpack_pure_16() local 152 unpacked[i + 0] = nir_channel(b, halves, 0); in pan_unpack_pure_16() 153 unpacked[i + 1] = nir_channel(b, halves, 1); in pan_unpack_pure_16() 156 return nir_pad_vec4(b, nir_vec(b, unpacked, num_components)); in pan_unpack_pure_16() 204 nir_ssa_def *unpacked = nir_unpack_32_4x8(b, nir_channel(b, pack, 0)); in pan_unpack_pure_8() local 205 return nir_channels(b, unpacked, ( in pan_unpack_pure_8() 418 pan_pack(nir_builder *b, const struct util_format_description *desc, nir_ssa_def *unpacked) pan_pack() argument 492 nir_ssa_def *unpacked = pan_lower_fb_store() local 524 nir_ssa_def *unpacked = pan_unpack(b, desc, packed); pan_lower_fb_load() local [all...] |
/third_party/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/ |
H A D | AnyTest.cs | 80 var unpacked = any.Unpack<TestAllTypes>(); in Unpack_Success() 81 Assert.AreEqual(message, unpacked); in Unpack_Success() 89 var unpacked = any.Unpack<TestAllTypes>(); in Unpack_CustomPrefix_Success() 90 Assert.AreEqual(message, unpacked); in Unpack_CustomPrefix_Success() 98 Assert.False(any.TryUnpack(out TestOneof unpacked)); in TryUnpack_WrongType() 99 Assert.Null(unpacked); in TryUnpack_WrongType() 107 Assert.IsTrue(any.TryUnpack(out TestAllTypes unpacked)); in TryUnpack_RightType() 108 Assert.AreEqual(message, unpacked); in TryUnpack_RightType()
|
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuStringTemplate.hpp | 75 inline void unpackArgs(unpacked_t& unpacked, arg_t&& cur, args_t&&... args) in unpackArgs() argument 79 unpacked[TOKENS[ARG_NUM]] = de::toString(cur); in unpackArgs() 80 unpackArgs<ARG_NUM + 1>(unpacked, ::std::forward<args_t>(args)...); in unpackArgs() 90 std::map<std::string, std::string> unpacked = {}; 91 detail::unpackArgs<0>(unpacked, ::std::forward<args_t>(args)...); 92 return specialize(unpacked);
|
/third_party/mesa3d/src/broadcom/compiler/ |
H A D | v3d33_vpm_setup.c | 36 struct V3D33_VPM_GENERIC_BLOCK_READ_SETUP unpacked = { in v3d33_vir_vpm_read_setup() local 52 &unpacked); in v3d33_vir_vpm_read_setup() 60 struct V3D33_VPM_GENERIC_BLOCK_WRITE_SETUP unpacked = { in v3d33_vir_vpm_write_setup() local 73 &unpacked); in v3d33_vir_vpm_write_setup()
|
H A D | vir_dump.c | 171 uint32_t unpacked; in vir_print_reg() local 174 &unpacked); in vir_print_reg() 179 fprintf(stderr, "%d", unpacked); in vir_print_reg() 181 fprintf(stderr, "%f", uif(unpacked)); in vir_print_reg()
|
H A D | v3d_nir_lower_logic_ops.c | 134 nir_ssa_def *unpacked = unpack_func(b, packed); in v3d_nir_unpack_and_swizzle() local 138 unpacked_chans[i] = nir_channel(b, unpacked, i); in v3d_nir_unpack_and_swizzle()
|
/third_party/mesa3d/src/gallium/drivers/v3d/ |
H A D | v3dx_emit.c | 137 struct V3D33_TEXTURE_SHADER_STATE unpacked = { in emit_one_texture() local 181 unpacked.swizzle_r = v3d_translate_pipe_swizzle(PIPE_SWIZZLE_X); in emit_one_texture() 182 unpacked.swizzle_g = v3d_translate_pipe_swizzle(PIPE_SWIZZLE_Y); in emit_one_texture() 183 unpacked.swizzle_b = v3d_translate_pipe_swizzle(PIPE_SWIZZLE_Z); in emit_one_texture() 184 unpacked.swizzle_a = v3d_translate_pipe_swizzle(PIPE_SWIZZLE_W); in emit_one_texture() 186 unpacked.swizzle_r = v3d_translate_pipe_swizzle(sview->swizzle[0]); in emit_one_texture() 187 unpacked.swizzle_g = v3d_translate_pipe_swizzle(sview->swizzle[1]); in emit_one_texture() 188 unpacked.swizzle_b = v3d_translate_pipe_swizzle(sview->swizzle[2]); in emit_one_texture() 189 unpacked.swizzle_a = v3d_translate_pipe_swizzle(sview->swizzle[3]); in emit_one_texture() 205 unpacked in emit_one_texture() [all...] |
H A D | v3d_program.c | 125 struct V3D33_TRANSFORM_FEEDBACK_OUTPUT_DATA_SPEC unpacked = { in v3d_set_transform_feedback_outputs() local 136 assert(unpacked.first_shaded_vertex_value_to_output != 8 || in v3d_set_transform_feedback_outputs() 142 &unpacked); in v3d_set_transform_feedback_outputs() local 149 unpacked.first_shaded_vertex_value_to_output++; in v3d_set_transform_feedback_outputs() 152 assert(unpacked.first_shaded_vertex_value_to_output != 8 || in v3d_set_transform_feedback_outputs() 157 &unpacked); in v3d_set_transform_feedback_outputs() local
|
H A D | v3d_uniforms.c | 153 struct V3D33_TEXTURE_UNIFORM_PARAMETER_1_CFG_MODE1 unpacked = { in write_texture_p1() local 160 &unpacked); in write_texture_p1()
|
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/WellKnownTypes/ |
H A D | AnyTest.cs | 80 var unpacked = any.Unpack<TestAllTypes>(); in Unpack_Success() 81 Assert.AreEqual(message, unpacked); in Unpack_Success() 89 var unpacked = any.Unpack<TestAllTypes>(); in Unpack_CustomPrefix_Success() 90 Assert.AreEqual(message, unpacked); in Unpack_CustomPrefix_Success()
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_lower_image_casts.c | 130 nir_ssa_def *unpacked = nir_unpack_unorm_4x8(b, nir_channel(b, dest_packed, 0)); in convert_value() local 132 unpacked = nir_vector_insert_imm(b, unpacked, nir_imm_float(b, 1.0f), 3); in convert_value() 133 return unpacked; in convert_value() 149 nir_ssa_def *unpacked = nir_unpack_snorm_4x8(b, nir_channel(b, dest_packed, 0)); in convert_value() local 151 unpacked = nir_vector_insert_imm(b, unpacked, nir_imm_float(b, 1.0f), 3); in convert_value() 152 return unpacked; in convert_value()
|
/third_party/skia/src/core/ |
H A D | SkPictureFlat.h | 166 uint32_t unpacked = packed & 0xF; in ClipParams_unpackRegionOp() local 167 if (buffer->validate(unpacked <= SkRegion::kIntersect_Op || in ClipParams_unpackRegionOp() 168 (unpacked <= SkRegion::kReplace_Op && in ClipParams_unpackRegionOp() 170 return static_cast<SkRegion::Op>(unpacked); in ClipParams_unpackRegionOp()
|
/third_party/mesa3d/src/broadcom/qpu/ |
H A D | qpu_pack.c | 231 /* Signals with zeroed unpacked contents after element 0 are reserved. */ in v3d_qpu_sig_unpack() 628 enum v3d_qpu_input_unpack *unpacked) in v3d_qpu_float32_unpack_unpack() 632 *unpacked = V3D_QPU_UNPACK_ABS; in v3d_qpu_float32_unpack_unpack() 635 *unpacked = V3D_QPU_UNPACK_NONE; in v3d_qpu_float32_unpack_unpack() 638 *unpacked = V3D_QPU_UNPACK_L; in v3d_qpu_float32_unpack_unpack() 641 *unpacked = V3D_QPU_UNPACK_H; in v3d_qpu_float32_unpack_unpack() 649 v3d_qpu_float32_unpack_pack(enum v3d_qpu_input_unpack unpacked, in v3d_qpu_float32_unpack_pack() argument 652 switch (unpacked) { in v3d_qpu_float32_unpack_pack() 672 enum v3d_qpu_input_unpack *unpacked) in v3d_qpu_float16_unpack_unpack() 676 *unpacked in v3d_qpu_float16_unpack_unpack() 627 v3d_qpu_float32_unpack_unpack(uint32_t packed, enum v3d_qpu_input_unpack *unpacked) v3d_qpu_float32_unpack_unpack() argument 671 v3d_qpu_float16_unpack_unpack(uint32_t packed, enum v3d_qpu_input_unpack *unpacked) v3d_qpu_float16_unpack_unpack() argument 696 v3d_qpu_float16_unpack_pack(enum v3d_qpu_input_unpack unpacked, uint32_t *packed) v3d_qpu_float16_unpack_pack() argument 721 v3d_qpu_float32_pack_pack(enum v3d_qpu_input_unpack unpacked, uint32_t *packed) v3d_qpu_float32_pack_pack() argument [all...] |
/third_party/mesa3d/src/compiler/glsl/ |
H A D | lower_instructions.cpp | 392 ir_variable *unpacked = in dldexp_to_arith() local 393 new(ir) ir_variable(glsl_type::uvec2_type, "unpacked", ir_var_temporary); in dldexp_to_arith() 394 i.insert_before(unpacked); in dldexp_to_arith() 396 assign(unpacked, in dldexp_to_arith() 398 i.insert_before(assign(unpacked, bit_and(swizzle_y(unpacked), sign_mask->clone(ir, NULL)), in dldexp_to_arith() 400 i.insert_before(assign(unpacked, ir_constant::zero(ir, glsl_type::uint_type), WRITEMASK_X)); in dldexp_to_arith() 402 expr(ir_unop_pack_double_2x32, unpacked), in dldexp_to_arith() 425 ir_variable *unpacked = in dldexp_to_arith() local 426 new(ir) ir_variable(glsl_type::uvec2_type, "unpacked", ir_var_temporar in dldexp_to_arith() 497 ir_variable *unpacked = dfrexp_sig_to_arith() local [all...] |
/third_party/python/Modules/_xxtestfuzz/ |
H A D | fuzzer.c | 121 PyObject* unpacked = PyObject_CallFunctionObjArgs( in fuzz_struct_unpack() local 124 if (unpacked == NULL && PyErr_ExceptionMatches(PyExc_OverflowError)) { in fuzz_struct_unpack() 129 if (unpacked == NULL && PyErr_ExceptionMatches(PyExc_SystemError)) { in fuzz_struct_unpack() 134 if (unpacked == NULL && PyErr_ExceptionMatches(struct_error)) { in fuzz_struct_unpack() 138 Py_XDECREF(unpacked); in fuzz_struct_unpack()
|
/third_party/mesa3d/src/util/format/ |
H A D | u_format_tests.h | 43 * A (packed, unpacked) color pair. 60 double unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4]; member
|
/third_party/python/Lib/test/ |
H A D | test_struct.py | 367 unpacked = struct.unpack("<f", packed)[0] 368 # This failed at base = 2, 4, and 32, with unpacked = 1, 2, and 370 self.assertEqual(base, unpacked) 373 unpacked = struct.unpack(">f", bigpacked)[0] 374 self.assertEqual(base, unpacked) 380 unpacked = struct.unpack(">f", packed)[0] 381 self.assertEqual(big, unpacked)
|
H A D | test_genericalias.py | 389 unpacked = (*alias,)[0] 390 self.assertIs(unpacked.__unpacked__, True)
|
/third_party/mesa3d/src/intel/isl/ |
H A D | isl_format.c | 1310 } unpacked; in unpack_channel() local 1319 unpacked.f32 = util_format_srgb_8unorm_to_linear_float(packed); in unpack_channel() 1322 unpacked.f32 = util_format_srgb_to_linear_float(srgb); in unpack_channel() 1325 unpacked.f32 = _mesa_unorm_to_float(packed, layout->bits); in unpack_channel() 1329 unpacked.f32 = _mesa_snorm_to_float(util_sign_extend(packed, layout->bits), in unpack_channel() 1335 unpacked.f32 = _mesa_half_to_float(packed); in unpack_channel() 1337 unpacked.u32 = packed; in unpack_channel() 1341 unpacked.u32 = packed; in unpack_channel() 1344 unpacked.u32 = util_sign_extend(packed, layout->bits); in unpack_channel() 1352 value->u32[start + i] = unpacked in unpack_channel() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
H A D | VkFormat.cpp | 2647 static_assert(unpack(0) == VK_FORMAT_UNDEFINED, "Incorrect VkFormat unpacked value"); 2648 static_assert(unpack(184) == VK_FORMAT_ASTC_12x12_SRGB_BLOCK, "Incorrect VkFormat unpacked value"); 2649 static_assert(unpack(185) == VK_FORMAT_G8B8G8R8_422_UNORM, "Incorrect VkFormat unpacked value"); 2650 static_assert(unpack(218) == VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM, "Incorrect VkFormat unpacked value"); 2651 static_assert(unpack(219) == VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG, "Incorrect VkFormat unpacked value"); 2652 static_assert(unpack(226) == VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG, "Incorrect VkFormat unpacked value"); 2653 static_assert(unpack(227) == VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT, "Incorrect VkFormat unpacked value"); 2654 static_assert(unpack(240) == VK_FORMAT_ASTC_12x12_SFLOAT_BLOCK_EXT, "Incorrect VkFormat unpacked value"); 2655 static_assert(unpack(241) == VK_FORMAT_A4R4G4B4_UNORM_PACK16_EXT, "Incorrect VkFormat unpacked value"); 2656 static_assert(unpack(242) == VK_FORMAT_A4B4G4R4_UNORM_PACK16_EXT, "Incorrect VkFormat unpacked valu 2670 VkFormat unpacked = unpack(format); mapFrom8bit() local [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_builder.h | 997 nir_ssa_def *unpacked = nir_unpack_bits(b, comp, common_bit_size); in nir_extract_bits() 998 comp = nir_channel(b, unpacked, (rel_bit % src_bit_size) / in nir_extract_bits() 1009 nir_ssa_def *unpacked = nir_vec(b, common_comps + i * common_per_dest, in nir_extract_bits() 1011 dest_comps[i] = nir_pack_bits(b, unpacked, dest_bit_size); in nir_extract_bits()
|
/third_party/protobuf/src/google/protobuf/ |
H A D | extension_set_unittest.cc | 657 unittest::TestUnpackedTypes unpacked; in TEST() local 658 TestUtil::SetUnpackedFields(&unpacked); in TEST() 660 EXPECT_EQ(unpacked.SerializeAsString().size(), in TEST() 662 EXPECT_TRUE(EqualsToSerialized(unpacked, destination.SerializeAsString())); in TEST()
|
/third_party/ffmpeg/libavcodec/x86/ |
H A D | vc1dsp_mc.asm | 151 ; Data is already unpacked, so some operations can directly be made from
|