Searched refs:swizzles (Results 1 - 25 of 29) sorted by relevance

12

/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_program.h32 * EXT_texture_swizzle and DEPTH_TEXTURE_MODE swizzles.
34 uint16_t swizzles[MAX_SAMPLERS]; member in struct:brw_sampler_prog_key_data
H A Dbrw_wm_surface_state.c665 int swizzles[SWIZZLE_NIL + 1] = { local
679 swizzles[0] = SWIZZLE_ZERO;
680 swizzles[1] = SWIZZLE_ZERO;
681 swizzles[2] = SWIZZLE_ZERO;
682 swizzles[3] = SWIZZLE_X;
685 swizzles[0] = SWIZZLE_X;
686 swizzles[1] = SWIZZLE_X;
687 swizzles[2] = SWIZZLE_X;
688 swizzles[3] = SWIZZLE_ONE;
691 swizzles[
[all...]
H A Dbrw_vec4.cpp35 * Common helper for constructing swizzles. When only a subset of
118 int swizzles[4]; local
126 swizzles[next_chan++] = last = i;
130 swizzles[next_chan] = last;
133 this->swizzle = BRW_SWIZZLE4(swizzles[0], swizzles[1],
134 swizzles[2], swizzles[3]);
H A Dbrw_wm.c369 old_key->swizzles[i], key->swizzles[i]);
442 key->swizzles[s] = SWIZZLE_NOOP;
463 key->swizzles[s] = brw_get_texture_swizzle(t);
H A Dbrw_vs.c481 key.tex.swizzles[i] =
485 key.tex.swizzles[i] = SWIZZLE_XYZW;
H A Dbrw_vec4_visitor.cpp1383 /* Note that this is only swizzles in expressions, not those on the left
1537 * swizzles in it and write swizzles using writemask, though.
1662 /* emit_block_move doesn't account for swizzles in the source register.
1687 int swizzles[4]; local
1710 swizzles[i] = BRW_GET_SWZ(src.swizzle, src_chan++);
1712 swizzles[i] = first_enabled_chan;
1714 src.swizzle = BRW_SWIZZLE4(swizzles[0], swizzles[1],
1715 swizzles[
[all...]
H A Dbrw_wm_fp.c674 if (c->key.tex.swizzles[unit] != SWIZZLE_NOOP) {
871 if (c->key.tex.swizzles[unit] != SWIZZLE_NOOP) {
877 src_swizzle4(tmpsrc, c->key.tex.swizzles[unit]),
/external/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_swizzle.h82 * @param swizzles is the in [0,4[ range.
87 const unsigned char swizzles[4]);
99 const unsigned char swizzles[4],
106 const unsigned char swizzles[4]);
H A Dlp_bld_swizzle.c253 const unsigned char swizzles[4])
260 if (swizzles[0] == PIPE_SWIZZLE_RED &&
261 swizzles[1] == PIPE_SWIZZLE_GREEN &&
262 swizzles[2] == PIPE_SWIZZLE_BLUE &&
263 swizzles[3] == PIPE_SWIZZLE_ALPHA) {
267 if (swizzles[0] == swizzles[1] &&
268 swizzles[1] == swizzles[2] &&
269 swizzles[
251 lp_build_swizzle_aos(struct lp_build_context *bld, LLVMValueRef a, const unsigned char swizzles[4]) argument
470 lp_build_swizzle_soa(struct lp_build_context *bld, const LLVMValueRef *unswizzled, const unsigned char swizzles[4], LLVMValueRef *swizzled) argument
492 lp_build_swizzle_soa_inplace(struct lp_build_context *bld, LLVMValueRef *values, const unsigned char swizzles[4]) argument
[all...]
H A Dlp_bld_sample.h278 unsigned char swizzles[4]; local
280 swizzles[0] = bld->static_state->swizzle_r;
281 swizzles[1] = bld->static_state->swizzle_g;
282 swizzles[2] = bld->static_state->swizzle_b;
283 swizzles[3] = bld->static_state->swizzle_a;
285 lp_build_swizzle_soa_inplace(&bld->texel_bld, texel, swizzles);
H A Dlp_bld_tgsi_aos.c63 * Wrapper around lp_build_swizzle_aos which translates swizzles to another
74 unsigned char swizzles[4]; local
82 swizzles[bld->inv_swizzles[0]] = bld->swizzles[swizzle_x];
83 swizzles[bld->inv_swizzles[1]] = bld->swizzles[swizzle_y];
84 swizzles[bld->inv_swizzles[2]] = bld->swizzles[swizzle_z];
85 swizzles[bld->inv_swizzles[3]] = bld->swizzles[swizzle_
983 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, struct lp_build_sampler_aos *sampler, const struct tgsi_shader_info *info) argument
[all...]
H A Dlp_bld_format_aos.c65 unsigned char swizzles[4]; local
87 swizzles[chan] = swizzle;
90 return lp_build_swizzle_aos(bld, unswizzled, swizzles);
95 * Whether the format matches the vector type, apart of swizzles.
270 LLVMValueRef swizzles[4]; local
291 swizzles[i] = lp_build_const_int32(gallivm, j);
293 swizzles[i] = LLVMGetUndef(LLVMInt32TypeInContext(gallivm->context));
298 LLVMConstVector(swizzles, 4), "");
H A Dlp_bld_tgsi.h229 const unsigned char swizzles[4],
442 * - swizzles[0] = red index
443 * - swizzles[1] = green index
444 * - swizzles[2] = blue index
445 * - swizzles[3] = alpha index
447 unsigned char swizzles[4]; member in struct:lp_build_tgsi_aos_context
H A Dlp_bld_tgsi_soa.c863 unsigned char swizzles[4]; local
875 swizzles[0] = inst->Predicate.SwizzleX;
876 swizzles[1] = inst->Predicate.SwizzleY;
877 swizzles[2] = inst->Predicate.SwizzleZ;
878 swizzles[3] = inst->Predicate.SwizzleW;
884 unsigned swizzle = swizzles[chan];
888 * in the swizzles
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_format_parse.py107 def __init__(self, name, layout, block_width, block_height, channels, swizzles, colorspace):
113 self.swizzles = swizzles
202 swizzle = self.swizzles[i]
253 swizzles = [_swizzle_parse_map[swizzle] for swizzle in fields[8]]
260 swizzle = swizzles[i]
265 swizzle = swizzles[i]
301 format = Format(name, layout, block_width, block_height, channels, swizzles, colorspace)
H A Du_format_table.py123 swizzle = format.swizzles[i]
152 if format.colorspace == ZS and format.swizzles[0] != SWIZZLE_NONE:
162 if format.colorspace == ZS and format.swizzles[1] != SWIZZLE_NONE:
H A Du_format_pack.py462 swizzle = format.swizzles[i]
490 swizzle = format.swizzles[i]
/external/deqp/modules/gles2/performance/
H A Des2pTextureCases.cpp163 static const IVec4 swizzles[] = { IVec4(0,1,2,3), IVec4(1,2,3,0), IVec4(2,3,0,1), IVec4(3,0,1,2), local
165 const IVec4& sw = swizzles[texNdx % DE_LENGTH_OF_ARRAY(swizzles)];
/external/deqp/modules/gles3/performance/
H A Des3pTextureCases.cpp189 static const IVec4 swizzles[] = { IVec4(0,1,2,3), IVec4(1,2,3,0), IVec4(2,3,0,1), IVec4(3,0,1,2), local
191 const IVec4& sw = swizzles[texNdx % DE_LENGTH_OF_ARRAY(swizzles)];
/external/deqp/modules/gles3/functional/
H A Des3fTextureSwizzleTests.cpp268 } swizzles[] = local
300 // All swizzles applied to each channel.
305 for (int swzNdx = 0; swzNdx < DE_LENGTH_OF_ARRAY(swizzles); swzNdx++)
307 if (swizzles[swzNdx].swizzle == defaultSwizzles[chanNdx])
310 string name = string(channels[chanNdx].name) + "_" + swizzles[swzNdx].name;
311 deUint32 swz = swizzles[swzNdx].swizzle;
H A Des3fFramebufferBlitTests.cpp963 } swizzles[] =
982 for (int swzNdx = 0; swzNdx < DE_LENGTH_OF_ARRAY(swizzles); swzNdx++)
984 string name = string(copyRects[rectNdx].name) + (swizzles[swzNdx].name ? (string("_") + swizzles[swzNdx].name) : string());
985 IVec4 srcSwz = swizzles[swzNdx].srcSwizzle;
986 IVec4 dstSwz = swizzles[swzNdx].dstSwizzle;
998 for (int swzNdx = 0; swzNdx < DE_LENGTH_OF_ARRAY(swizzles); swzNdx++)
1000 string name = string("nearest_consistency_") + filterConsistencyRects[rectNdx].name + (swizzles[swzNdx].name ? (string("_") + swizzles[swzNdx].name) : string());
1001 IVec4 srcSwz = swizzles[swzNd
[all...]
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_tile_soa.py95 swizzle = format.swizzles[i]
99 swizzle = format.swizzles[0]
153 swizzle = format.swizzles[i]
/external/mesa3d/src/gallium/drivers/radeon/
H A Dradeon_setup_tgsi_llvm.c68 LLVMValueRef swizzles[4]; local
72 swizzles[0] = LLVMConstInt(i32t, swizzle_x, 0);
73 swizzles[1] = LLVMConstInt(i32t, swizzle_y, 0);
74 swizzles[2] = LLVMConstInt(i32t, swizzle_z, 0);
75 swizzles[3] = LLVMConstInt(i32t, swizzle_w, 0);
80 LLVMConstVector(swizzles, 4), "");
/external/mesa3d/src/mesa/program/
H A Dir_to_mesa.cpp97 GLuint swizzle; /**< SWIZZLE_XYZWONEZERO swizzles from Mesa. */
1481 /* Note that this is only swizzles in expressions, not those on the left
1676 * swizzles in it and write swizzles using writemask, though.
1794 int swizzles[4]; local
1816 swizzles[i] = GET_SWZ(r.swizzle, rhs_chan++);
1818 swizzles[i] = first_enabled_chan;
1820 r.swizzle = MAKE_SWIZZLE4(swizzles[0], swizzles[1],
1821 swizzles[
[all...]
/external/mesa3d/src/mesa/state_tracker/
H A Dst_glsl_to_tgsi.cpp139 GLuint swizzle; /**< SWIZZLE_XYZWONEZERO swizzles from Mesa. */
1901 /* Note that this is only swizzles in expressions, not those on the left
2104 * swizzles in it and write swizzles using writemask, though.
2223 int swizzles[4]; local
2244 swizzles[i] = GET_SWZ(r.swizzle, rhs_chan++);
2246 swizzles[i] = first_enabled_chan;
2248 r.swizzle = MAKE_SWIZZLE4(swizzles[0], swizzles[1],
2249 swizzles[
[all...]

Completed in 470 milliseconds

12