/third_party/mesa3d/src/gallium/drivers/crocus/ |
H A D | crocus_formats.c | 363 info.swizzles[0] = PIPE_SWIZZLE_X; in crocus_format_for_usage() 364 info.swizzles[1] = PIPE_SWIZZLE_X; in crocus_format_for_usage() 365 info.swizzles[2] = PIPE_SWIZZLE_X; in crocus_format_for_usage() 366 info.swizzles[3] = PIPE_SWIZZLE_X; in crocus_format_for_usage() 368 info.swizzles[0] = PIPE_SWIZZLE_X; in crocus_format_for_usage() 369 info.swizzles[1] = PIPE_SWIZZLE_X; in crocus_format_for_usage() 370 info.swizzles[2] = PIPE_SWIZZLE_X; in crocus_format_for_usage() 371 info.swizzles[3] = PIPE_SWIZZLE_1; in crocus_format_for_usage() 373 info.swizzles[0] = PIPE_SWIZZLE_X; in crocus_format_for_usage() 374 info.swizzles[ in crocus_format_for_usage() [all...] |
H A D | crocus_program.c | 52 .base.tex.swizzles[0 ... BRW_MAX_SAMPLERS - 1] = 0x688, \ 64 key->swizzles[s] = SWIZZLE_NOOP; in crocus_sanitize_tex_key() 163 key->swizzles[s] = SWIZZLE_NOOP; in crocus_populate_sampler_prog_key_data() 171 key->swizzles[s] = crocus_get_texture_swizzle(ice, texture); in crocus_populate_sampler_prog_key_data() 190 unsigned src_swizzle = key->swizzles[s]; in crocus_populate_sampler_prog_key_data() 194 key->swizzles[i] &= ~(0x7 << (3 * i)); in crocus_populate_sampler_prog_key_data() 195 key->swizzles[i] |= SWIZZLE_ONE << (3 * i); in crocus_populate_sampler_prog_key_data() 230 if (key_tex->swizzles[s] == SWIZZLE_NOOP) in crocus_lower_swizzles() 235 tex_options.swizzles[s][c] = GET_SWZ(key_tex->swizzles[ in crocus_lower_swizzles() [all...] |
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_swizzle.c | 309 * e.g. with swizzles = { 2, 1, 0 } and swizzle_count = 6 results in 312 * @param swizzles the swizzle array 313 * @param num_swizzles the number of elements in swizzles 319 const unsigned char* swizzles, in lp_build_swizzle_aos_n() 329 int swizzle = swizzles[i % num_swizzles]; in lp_build_swizzle_aos_n() 347 const unsigned char swizzles[4]) in lp_build_swizzle_aos() 353 if (swizzles[0] == PIPE_SWIZZLE_X && in lp_build_swizzle_aos() 354 swizzles[1] == PIPE_SWIZZLE_Y && in lp_build_swizzle_aos() 355 swizzles[2] == PIPE_SWIZZLE_Z && in lp_build_swizzle_aos() 356 swizzles[ in lp_build_swizzle_aos() 317 lp_build_swizzle_aos_n(struct gallivm_state* gallivm, LLVMValueRef src, const unsigned char* swizzles, unsigned num_swizzles, unsigned dst_len) lp_build_swizzle_aos_n() argument 345 lp_build_swizzle_aos(struct lp_build_context *bld, LLVMValueRef a, const unsigned char swizzles[4]) lp_build_swizzle_aos() argument 588 lp_build_swizzle_soa(struct lp_build_context *bld, const LLVMValueRef *unswizzled, const unsigned char swizzles[4], LLVMValueRef *swizzled) lp_build_swizzle_soa() argument 608 lp_build_swizzle_soa_inplace(struct lp_build_context *bld, LLVMValueRef *values, const unsigned char swizzles[4]) lp_build_swizzle_soa_inplace() argument [all...] |
H A D | lp_bld_nir_aos.c | 44 unsigned char swizzles[4]; in swizzle_aos() local 52 swizzles[bld->inv_swizzles[0]] = bld->swizzles[swizzle_x]; in swizzle_aos() 53 swizzles[bld->inv_swizzles[1]] = bld->swizzles[swizzle_y]; in swizzle_aos() 54 swizzles[bld->inv_swizzles[2]] = bld->swizzles[swizzle_z]; in swizzle_aos() 55 swizzles[bld->inv_swizzles[3]] = bld->swizzles[swizzle_w]; in swizzle_aos() 57 return lp_build_swizzle_aos(&bld->bld_base.base, a, swizzles); in swizzle_aos() 321 lp_build_nir_aos(struct gallivm_state *gallivm, struct nir_shader *shader, struct lp_type type, const unsigned char swizzles[4], LLVMValueRef consts_ptr, const LLVMValueRef *inputs, LLVMValueRef *outputs, const struct lp_build_sampler_aos *sampler, const struct tgsi_shader_info *info) lp_build_nir_aos() argument [all...] |
H A D | lp_bld_tgsi_aos.c | 63 * Wrapper around lp_build_swizzle_aos which translates swizzles to another 74 unsigned char swizzles[4]; in swizzle_aos() local 82 swizzles[bld->inv_swizzles[0]] = bld->swizzles[swizzle_x]; in swizzle_aos() 83 swizzles[bld->inv_swizzles[1]] = bld->swizzles[swizzle_y]; in swizzle_aos() 84 swizzles[bld->inv_swizzles[2]] = bld->swizzles[swizzle_z]; in swizzle_aos() 85 swizzles[bld->inv_swizzles[3]] = bld->swizzles[swizzle_ in swizzle_aos() 859 lp_build_tgsi_aos(struct gallivm_state *gallivm, const struct tgsi_token *tokens, struct lp_type type, const unsigned char swizzles[4], LLVMValueRef consts_ptr, const LLVMValueRef *inputs, LLVMValueRef *outputs, const struct lp_build_sampler_aos *sampler, const struct tgsi_shader_info *info) lp_build_tgsi_aos() argument [all...] |
H A D | lp_bld_swizzle.h | 84 * @param swizzles is the in [0,4[ range. 89 const unsigned char swizzles[4]); 95 const unsigned char* swizzles, 109 const unsigned char swizzles[4], 116 const unsigned char swizzles[4]);
|
H A D | lp_bld_sample.h | 507 unsigned char swizzles[4]; in apply_sampler_swizzle() local 509 swizzles[0] = bld->static_texture_state->swizzle_r; in apply_sampler_swizzle() 510 swizzles[1] = bld->static_texture_state->swizzle_g; in apply_sampler_swizzle() 511 swizzles[2] = bld->static_texture_state->swizzle_b; in apply_sampler_swizzle() 512 swizzles[3] = bld->static_texture_state->swizzle_a; in apply_sampler_swizzle() 514 lp_build_swizzle_soa_inplace(&bld->texel_bld, texel, swizzles); in apply_sampler_swizzle()
|
H A D | lp_bld_format_aos.c | 70 unsigned char swizzles[4]; in lp_build_format_swizzle_aos() local 92 swizzles[chan] = swizzle; in lp_build_format_swizzle_aos() 95 return lp_build_swizzle_aos(bld, unswizzled, swizzles); in lp_build_format_swizzle_aos() 100 * Whether the format matches the vector type, apart of swizzles. 371 LLVMValueRef swizzles[4]; in lp_build_pack_rgba_aos() local 391 swizzles[i] = lp_build_const_int32(gallivm, j); in lp_build_pack_rgba_aos() 393 swizzles[i] = LLVMGetUndef(LLVMInt32TypeInContext(gallivm->context)); in lp_build_pack_rgba_aos() 398 LLVMConstVector(swizzles, 4), ""); in lp_build_pack_rgba_aos()
|
H A D | lp_bld_nir.h | 46 const unsigned char swizzles[4], 298 * - swizzles[0] = red index 299 * - swizzles[1] = green index 300 * - swizzles[2] = blue index 301 * - swizzles[3] = alpha index 303 unsigned char swizzles[4]; member
|
H A D | lp_bld_tgsi.h | 303 const unsigned char swizzles[4], 624 * - swizzles[0] = red index 625 * - swizzles[1] = green index 626 * - swizzles[2] = blue index 627 * - swizzles[3] = alpha index 629 unsigned char swizzles[4]; member
|
/third_party/mesa3d/src/util/format/ |
H A D | u_format_pack.py | 43 def inv_swizzles(swizzles): 48 swizzle = swizzles[i] 74 def generate_bitfields(channels, swizzles): 93 def generate_full_fields(channels, swizzles): 442 def unpack_from_bitmask(channels, swizzles): 474 swizzle = swizzles[i] 496 def unpack_from_struct(channels, swizzles): 501 swizzle = swizzles[i] 538 def pack_into_bitmask(channels, swizzles): 539 inv_swizzle = inv_swizzles(swizzles) [all...] |
H A D | u_format_table.py | 146 def do_channel_array(channels, swizzles): 160 def do_swizzle_array(channels, swizzles): 163 swizzle = swizzles[i]
|
H A D | u_format_parse.py | 136 "{} is an array format and should not include BE swizzles in the CSV".format(self.name)) 140 "{} is a bitmask format and should not include BE swizzles in the CSV".format(self.name)) 353 def _parse_channels(fields, layout, colorspace, swizzles): 358 swizzle = swizzles[i] 363 swizzle = swizzles[i]
|
/third_party/vk-gl-cts/modules/gles2/performance/ |
H A D | es2pTextureCases.cpp | 163 static const IVec4 swizzles[] = { IVec4(0,1,2,3), IVec4(1,2,3,0), IVec4(2,3,0,1), IVec4(3,0,1,2), in init() local 165 const IVec4& sw = swizzles[texNdx % DE_LENGTH_OF_ARRAY(swizzles)]; in init()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
H A D | SwizzleTest.cpp | 28 constexpr GLenum swizzles[] = { in SwizzleTest() local 37 for (GLenum r : swizzles) in SwizzleTest() 39 for (GLenum g : swizzles) in SwizzleTest() 41 for (GLenum b : swizzles) in SwizzleTest() 43 for (GLenum a : swizzles) in SwizzleTest() 459 // Test that updating the texture data still generates the correct swizzles
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fTextureSwizzleTests.cpp | 269 } swizzles[] = in init() local 301 // All swizzles applied to each channel. in init() 306 for (int swzNdx = 0; swzNdx < DE_LENGTH_OF_ARRAY(swizzles); swzNdx++) in init() 308 if (swizzles[swzNdx].swizzle == defaultSwizzles[chanNdx]) in init() 311 string name = string(channels[chanNdx].name) + "_" + swizzles[swzNdx].name; in init() 312 deUint32 swz = swizzles[swzNdx].swizzle; in init()
|
H A D | es3fFramebufferBlitTests.cpp | 992 } swizzles[] = 1011 for (int swzNdx = 0; swzNdx < DE_LENGTH_OF_ARRAY(swizzles); swzNdx++) 1013 string name = string(copyRects[rectNdx].name) + (swizzles[swzNdx].name ? (string("_") + swizzles[swzNdx].name) : string()); 1014 IVec4 srcSwz = swizzles[swzNdx].srcSwizzle; 1015 IVec4 dstSwz = swizzles[swzNdx].dstSwizzle; 1027 for (int swzNdx = 0; swzNdx < DE_LENGTH_OF_ARRAY(swizzles); swzNdx++) 1029 string name = string("nearest_consistency_") + filterConsistencyRects[rectNdx].name + (swizzles[swzNdx].name ? (string("_") + swizzles[swzNdx].name) : string()); 1030 IVec4 srcSwz = swizzles[swzNd [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_lower_vec_to_movs.c | 186 /* Stash off all of the ALU instruction's swizzles. */ in try_coalesce() 187 uint8_t swizzles[4][4]; in try_coalesce() local 190 swizzles[j][i] = src_alu->src[j].swizzle[i]; in try_coalesce() 223 src_alu->src[j].swizzle[i] = swizzles[j][vec->src[i].swizzle[0]]; in try_coalesce()
|
/third_party/vk-gl-cts/modules/gles3/performance/ |
H A D | es3pTextureCases.cpp | 189 static const IVec4 swizzles[] = { IVec4(0,1,2,3), IVec4(1,2,3,0), IVec4(2,3,0,1), IVec4(3,0,1,2), in init() local 191 const IVec4& sw = swizzles[texNdx % DE_LENGTH_OF_ARRAY(swizzles)]; in init()
|
/third_party/mesa3d/src/amd/vulkan/ |
H A D | radv_nir_lower_ycbcr_textures.c | 188 enum pipe_swizzle swizzles[4]; in build_swizzled_components() local 191 vk_format_compose_swizzles(&mapping, (const unsigned char[4]){0, 1, 2, 3}, swizzles); in build_swizzled_components() 197 switch (swizzles[i]) { in build_swizzled_components() 202 unsigned channel = swizzles[i] - PIPE_SWIZZLE_X; in build_swizzled_components()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/ |
H A D | vktPipelineSamplerBorderSwizzleTests.cpp | 330 const auto swizzles = makeComponentSwizzleVec(mapping); in applySwizzle() local 333 for (int i = 0; i < decltype(swizzles)::SIZE; ++i) in applySwizzle() 335 const auto cs = swizzles[i]; in applySwizzle() 443 // * Applying swizzles and gathering to said thresholds. 1003 std::string swizzleArrayToString(const ComponentSwizzleArray& swizzles) in swizzleArrayToString() argument 1007 for (const auto& s : swizzles) in swizzleArrayToString() 1036 // Add a few combinations with rotated swizzles. in genMappingPermutations()
|
/third_party/mesa3d/src/gallium/auxiliary/tgsi/ |
H A D | tgsi_exec.c | 2185 unsigned char swizzles[4]; in exec_lodq() local 2187 swizzles[0] = inst->Src[1].Register.SwizzleX; in exec_lodq() 2188 swizzles[1] = inst->Src[1].Register.SwizzleY; in exec_lodq() 2189 swizzles[2] = inst->Src[1].Register.SwizzleZ; in exec_lodq() 2190 swizzles[3] = inst->Src[1].Register.SwizzleW; in exec_lodq() 2194 if (swizzles[chan] >= 2) { in exec_lodq() 2198 store_dest(mach, &r[swizzles[chan]], in exec_lodq() 2384 unsigned char swizzles[4]; in exec_txf() local 2385 swizzles[0] = inst->Src[1].Register.SwizzleX; in exec_txf() 2386 swizzles[ in exec_txf() 2447 unsigned char swizzles[4]; exec_sample() local 2579 unsigned char swizzles[4]; exec_sample_d() local [all...] |
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
H A D | OutputSPIRV.cpp | 77 std::vector<uint32_t> swizzles; member 97 // avoid a type look up when handling swizzles. 181 data.accessChain.swizzles.empty() && !data.accessChain.dynamicComponent.valid(); in IsAccessChainUnindexedLValue() 777 // Record the swizzle as multi-component swizzles require special handling. When loading in accessChainPushSwizzle() 781 ASSERT(accessChain.swizzles.empty()); in accessChainPushSwizzle() 791 accessChain.swizzles.insert(accessChain.swizzles.end(), swizzle.begin(), swizzle.end()); in accessChainPushSwizzle() 815 if (!accessChain.swizzles.empty()) in accessChainPushDynamicComponent() 819 ASSERT(accessChain.swizzles.size() > 1); in accessChainPushDynamicComponent() 821 // Create a vector constant from the swizzles in accessChainPushDynamicComponent() [all...] |
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_debug_recompile.c | 77 found |= check("EXT_texture_swizzle or DEPTH_TEXTURE_MODE", swizzles[i]); in debug_sampler_recompile()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
H A D | vktPipelineSamplerBorderSwizzleTests.cpp | 354 const auto swizzles = makeComponentSwizzleVec(mapping); in applySwizzle() local 357 for (int i = 0; i < decltype(swizzles)::SIZE; ++i) in applySwizzle() 359 const auto cs = swizzles[i]; in applySwizzle() 499 // * Applying swizzles and gathering to said thresholds. 1122 std::string swizzleArrayToString(const ComponentSwizzleArray& swizzles) in swizzleArrayToString() argument 1126 for (const auto& s : swizzles) in swizzleArrayToString() 1155 // Add a few combinations with rotated swizzles. in genMappingPermutations()
|