Home
last modified time | relevance | path

Searched refs:swz (Results 1 – 15 of 15) sorted by relevance

/hardware/google/gfxstream/third-party/astc-encoder/Source/
Dastcenc_image.cpp96 const astcenc_swizzle& swz in swz_texel_skip() argument
98 (void)swz; in swz_texel_skip()
110 const astcenc_swizzle& swz in swz_texel() argument
118 return vfloat4(datas[swz.r], datas[swz.g], datas[swz.b], datas[swz.a]); in swz_texel()
159 const astcenc_swizzle& swz in load_image_block() argument
170 bool needs_swz = (swz.r != ASTCENC_SWZ_R) || (swz.g != ASTCENC_SWZ_G) || in load_image_block()
171 (swz.b != ASTCENC_SWZ_B) || (swz.a != ASTCENC_SWZ_A); in load_image_block()
225 datav = swizzler(datav, swz); in load_image_block()
233 grayscalev = grayscalev & (datav.swz<0,0,0,0>() == datav.swz<1,1,2,2>()); in load_image_block()
276 const astcenc_swizzle& swz in load_image_block_fast_ldr() argument
[all …]
Dastcenc_compute_variance.cpp109 astcenc_swizzle swz = arg.swz; in compute_pixel_region_variance() local
182 uint8_t r = data[swz.r]; in compute_pixel_region_variance()
183 uint8_t g = data[swz.g]; in compute_pixel_region_variance()
184 uint8_t b = data[swz.b]; in compute_pixel_region_variance()
185 uint8_t a = data[swz.a]; in compute_pixel_region_variance()
226 vint4 di(data[swz.r], data[swz.g], data[swz.b], data[swz.a]); in compute_pixel_region_variance()
265 float r = data[swz.r]; in compute_pixel_region_variance()
266 float g = data[swz.g]; in compute_pixel_region_variance()
267 float b = data[swz.b]; in compute_pixel_region_variance()
268 float a = data[swz.a]; in compute_pixel_region_variance()
[all …]
Dastcenc_averages_and_directions.cpp59 averages[0] = blk.data_mean.swz<0, 1, 2>(); in compute_partition_averages_rgb()
86 vfloat4 block_total = blk.data_mean.swz<0, 1, 2>() * static_cast<float>(blk.texel_count); in compute_partition_averages_rgb()
126 vfloat4 block_total = blk.data_mean.swz<0, 1, 2>() * static_cast<float>(blk.texel_count); in compute_partition_averages_rgb()
175 vfloat4 block_total = blk.data_mean.swz<0, 1, 2>() * static_cast<float>(blk.texel_count); in compute_partition_averages_rgb()
422 vmask4 tdm0 = texel_datum.swz<0,0,0,0>() > zero; in compute_avgs_and_dirs_4_comp()
425 vmask4 tdm1 = texel_datum.swz<1,1,1,1>() > zero; in compute_avgs_and_dirs_4_comp()
428 vmask4 tdm2 = texel_datum.swz<2,2,2,2>() > zero; in compute_avgs_and_dirs_4_comp()
431 vmask4 tdm3 = texel_datum.swz<3,3,3,3>() > zero; in compute_avgs_and_dirs_4_comp()
476 partition_averages[0] = partition_averages[0].swz<1, 2, 3>(); in compute_avgs_and_dirs_3_comp()
477 partition_averages[1] = partition_averages[1].swz<1, 2, 3>(); in compute_avgs_and_dirs_3_comp()
[all …]
Dastcenc_internal.h1136 astcenc_swizzle swz; member
1570 const astcenc_swizzle& swz,
1605 const astcenc_swizzle& swz);
1630 const astcenc_swizzle& swz);
1650 const astcenc_swizzle& swz);
Dastcenccli_error_metrics.cpp275 normal1 = normalize_safe(normal1.swz<0, 1, 2>(), unit3()); in compute_error_metrics()
278 normal2 = normalize_safe(normal2.swz<0, 1, 2>(), unit3()); in compute_error_metrics()
Dastcenc_ideal_endpoints_and_weights.cpp239 error_weight = hadd_s(blk.channel_weight.swz<0, 1>()) / 2.0f; in compute_ideal_colors_and_weights_2_comp()
246 error_weight = hadd_s(blk.channel_weight.swz<0, 2>()) / 2.0f; in compute_ideal_colors_and_weights_2_comp()
255 error_weight = hadd_s(blk.channel_weight.swz<1, 2>()) / 2.0f; in compute_ideal_colors_and_weights_2_comp()
375 error_weight = hadd_s(blk.channel_weight.swz<0, 1, 2>()); in compute_ideal_colors_and_weights_3_comp()
382 error_weight = hadd_s(blk.channel_weight.swz<0, 2, 3>()); in compute_ideal_colors_and_weights_3_comp()
389 error_weight = hadd_s(blk.channel_weight.swz<0, 1, 3>()); in compute_ideal_colors_and_weights_3_comp()
398 error_weight = hadd_s(blk.channel_weight.swz<0, 1, 2>()); in compute_ideal_colors_and_weights_3_comp()
1230 vfloat4 scale_dir = normalize((rgba_sum / rgba_weight_sum).swz<0, 1, 2>()); in recompute_ideal_colors_1plane()
1453 vfloat4 scale_dir = normalize(blk.data_mean.swz<0, 1, 2>()); in recompute_ideal_colors_2planes()
Dastcenc_vecmathlib_neon_4.h148 template <int l0, int l1> ASTCENC_SIMD_INLINE vfloat4 swz() const in swz() function
156 template <int l0, int l1, int l2> ASTCENC_SIMD_INLINE vfloat4 swz() const in swz() function
164 template <int l0, int l1, int l2, int l3> ASTCENC_SIMD_INLINE vfloat4 swz() const in swz() function
Dastcenc_color_quantize.cpp1072 color = color.swz<1, 0, 2, 3>(); in quantize_hdr_rgbo()
1075 color = color.swz<2, 1, 0, 3>(); in quantize_hdr_rgbo()
1405 color0 = color0.swz<1, 0, 2, 3>(); in quantize_hdr_rgb()
1406 color1 = color1.swz<1, 0, 2, 3>(); in quantize_hdr_rgb()
1409 color0 = color0.swz<2, 1, 0, 3>(); in quantize_hdr_rgb()
1410 color1 = color1.swz<2, 1, 0, 3>(); in quantize_hdr_rgb()
Dastcenc_vecmathlib_sse_4.h155 template <int l0, int l1> ASTCENC_SIMD_INLINE vfloat4 swz() const in swz() function
166 template <int l0, int l1, int l2> ASTCENC_SIMD_INLINE vfloat4 swz() const in swz() function
176 template <int l0, int l1, int l2, int l3> ASTCENC_SIMD_INLINE vfloat4 swz() const in swz() function
Dastcenc_vecmathlib_none_4.h153 template <int l0, int l1> ASTCENC_SIMD_INLINE vfloat4 swz() const in swz() function
161 template <int l0, int l1, int l2> ASTCENC_SIMD_INLINE vfloat4 swz() const in swz() function
169 template <int l0, int l1, int l2, int l3> ASTCENC_SIMD_INLINE vfloat4 swz() const in swz() function
Dastcenc_pick_best_endpoint_format.cpp406 vfloat4 prd = (ep1 - vfloat4(cf)).swz<0, 1, 2>(); in compute_color_error_for_every_integer_count_and_quant_level()
407 vfloat4 pdif = prd - ep0.swz<0, 1, 2>(); in compute_color_error_for_every_integer_count_and_quant_level()
/hardware/google/gfxstream/guest/mesa/src/util/format/
Du_format.c917 const unsigned char swz[4], in util_format_apply_color_swizzle()
924 switch (swz[c]) { in util_format_apply_color_swizzle()
930 dst->ui[c] = (swz[c] == PIPE_SWIZZLE_1) ? 1 : 0; in util_format_apply_color_swizzle()
936 switch (swz[c]) { in util_format_apply_color_swizzle()
942 dst->f[c] = (swz[c] == PIPE_SWIZZLE_1) ? 1.0f : 0.0f; in util_format_apply_color_swizzle()
950 const unsigned char swz[4]) in pipe_swizzle_4f()
955 if (swz[i] <= PIPE_SWIZZLE_W) in pipe_swizzle_4f()
956 dst[i] = src[swz[i]]; in pipe_swizzle_4f()
957 else if (swz[i] == PIPE_SWIZZLE_0) in pipe_swizzle_4f()
959 else if (swz[i] == PIPE_SWIZZLE_1) in pipe_swizzle_4f()
[all …]
Du_format.h1717 const unsigned char swz[4],
1721 const unsigned char swz[4]);
1724 const unsigned char swz[4]);
/hardware/google/gfxstream/host/gl/glestranslator/GLcommon/
DGLEScontext.cpp2437 TextureSwizzle swz = in prepareCoreProfileEmulatedTexture() local
2441 dispatcher().glTexParameteri(target, GL_TEXTURE_SWIZZLE_R, swz.toRed); in prepareCoreProfileEmulatedTexture()
2442 dispatcher().glTexParameteri(target, GL_TEXTURE_SWIZZLE_G, swz.toGreen); in prepareCoreProfileEmulatedTexture()
2443 dispatcher().glTexParameteri(target, GL_TEXTURE_SWIZZLE_B, swz.toBlue); in prepareCoreProfileEmulatedTexture()
2444 dispatcher().glTexParameteri(target, GL_TEXTURE_SWIZZLE_A, swz.toAlpha); in prepareCoreProfileEmulatedTexture()
2662 TextureSwizzle swz = getInverseSwizzleForEmulatedFormat(texData->format); in copyTexImageWithEmulation() local
2663 gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_R, swz.toRed); in copyTexImageWithEmulation()
2664 gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_G, swz.toGreen); in copyTexImageWithEmulation()
2665 gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_B, swz.toBlue); in copyTexImageWithEmulation()
2666 gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_A, swz.toAlpha); in copyTexImageWithEmulation()
/hardware/google/gfxstream/third-party/astc-encoder/Source/UnitTest/
Dtest_simd.cpp377 vfloat4 r = a.swz<0, 3, 2, 1>(); in TEST()
383 r = a.swz<3, 1, 1, 0>(); in TEST()
394 vfloat4 r = a.swz<0, 3, 2>(); in TEST()
400 r = a.swz<3, 1, 1>(); in TEST()
411 vfloat4 r = a.swz<0, 3>(); in TEST()
415 r = a.swz<2, 1>(); in TEST()