HomeSort by relevance Sort by last modified time
    Searched refs:swz (Results 1 - 25 of 66) sorted by null

1 2 3

  /external/mesa3d/src/gallium/drivers/r300/compiler/
r300_fragprog_swizzle.c 77 unsigned int swz = GET_SWZ(swizzle, comp); local
78 if (swz == RC_SWIZZLE_UNUSED)
80 if (swz != GET_SWZ(sd->hash, comp))
121 unsigned int swz = GET_SWZ(reg.Swizzle, j); local
122 if (swz == RC_SWIZZLE_UNUSED)
124 if (swz != j)
164 unsigned int swz; local
167 swz = GET_SWZ(src.Swizzle, comp);
168 if (swz == RC_SWIZZLE_UNUSED)
170 if (swz == GET_SWZ(sd->hash, comp))
229 unsigned int swz = GET_SWZ(swizzle, 0); local
    [all...]
radeon_compiler_util.c 38 unsigned int rc_swizzle_to_writemask(unsigned int swz)
44 mask |= 1 << GET_SWZ(swz, i);
51 rc_swizzle get_swz(unsigned int swz, rc_swizzle idx)
55 return GET_SWZ(swz, idx);
89 unsigned int combine_swizzles(unsigned int src, unsigned int swz)
93 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_X));
94 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_Y)) << 3;
95 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_Z)) << 6;
96 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_W)) << 9;
120 unsigned swz = GET_SWZ(swizzle, chan) local
235 unsigned int swz = GET_SWZ(conversion_swizzle, i); local
269 unsigned int swz = GET_SWZ(swizzle, chan); local
295 rc_swizzle swz = GET_SWZ(swizzle, i); local
333 unsigned int swz = RC_SWIZZLE_UNUSED; local
725 int swz = GET_SWZ(swizzle, chan); local
744 unsigned int swz, chan; local
    [all...]
radeon_compiler_util.h 41 unsigned int rc_swizzle_to_writemask(unsigned int swz);
43 rc_swizzle get_swz(unsigned int swz, rc_swizzle idx);
51 unsigned int combine_swizzles(unsigned int src, unsigned int swz);
radeon_inline_literals.c 110 unsigned swz, chan; local
113 swz = RC_SWIZZLE_UNUSED;
125 swz = GET_SWZ(src_reg->Swizzle, chan);
126 if (swz == RC_SWIZZLE_UNUSED) {
129 float_value = constant->u.Immediate[swz];
radeon_program_constants.h 120 #define GET_SWZ(swz, idx) (((swz) >> ((idx)*3)) & 0x7)
122 #define SET_SWZ(swz, idx, newv) \
124 (swz) = ((swz) & ~(7 << ((idx)*3))) | ((newv) << ((idx)*3)); \
radeon_optimize.c 204 unsigned int swz = GET_SWZ(src.Swizzle, chan); local
205 if (swz < 4) {
209 if (swz == RC_SWIZZLE_UNUSED)
213 *pswz = swz;
217 if (swz != *pswz || *pnegate != GET_BIT(src.Negate, chan)) {
229 rc_swizzle swz = 0; local
232 if (is_src_uniform_constant(inst->U.I.SrcReg[2], &swz, &negate)) {
233 if (swz == RC_SWIZZLE_ZERO) {
239 if (is_src_uniform_constant(inst->U.I.SrcReg[1], &swz, &negate)) {
240 if (swz == RC_SWIZZLE_ONE)
270 rc_swizzle swz = 0; local
303 rc_swizzle swz = 0; local
362 unsigned int swz = GET_SWZ(newsrc.Swizzle, chan); local
440 unsigned int swz = GET_SWZ(src.Swizzle, chan); local
555 rc_swizzle swz = local
647 unsigned int i, swz; local
720 unsigned int chan = 0, swz, i; local
    [all...]
radeon_program_pair.c 135 unsigned int swz,
138 /* swz > 3 means that the swizzle is either not used, or a constant
140 if(swz > 3)
143 if(swz == RC_SWIZZLE_W) {
194 unsigned int swz = RC_SWIZZLE_UNUSED; local
199 swz = GET_SWZ(pair->RGB.Arg[i].Swizzle, chan);
200 if(swz == RC_SWIZZLE_X || swz == RC_SWIZZLE_Y
201 || swz == RC_SWIZZLE_Z || swz == RC_SWIZZLE_W
    [all...]
radeon_pair_translate.c 137 unsigned int swz = GET_SWZ(src.Swizzle, j); local
138 if (swz < 3)
140 else if (swz < 4)
224 unsigned int swz = GET_SWZ(inst->SrcReg[i].Swizzle, j); local
226 if (swz < RC_SWIZZLE_W)
228 else if (swz == RC_SWIZZLE_W)
231 if (swz < RC_SWIZZLE_UNUSED)
250 unsigned int swz; local
252 swz = rc_get_scalar_src_swz(inst->SrcReg[i].Swizzle);
254 swz = GET_SWZ(inst->SrcReg[i].Swizzle, 3)
    [all...]
radeon_dataflow_swizzles.c 104 unsigned new_swizzle, chan, swz0, swz1, swz2, swz3, found_swizzle, swz; local
115 unsigned swz = GET_SWZ(reg->Swizzle, chan); local
116 if (swz <= RC_SWIZZLE_W) {
119 if (swz == RC_SWIZZLE_UNUSED) {
128 swz = RC_SWIZZLE_UNUSED;
139 if (swz == RC_SWIZZLE_UNUSED) {
140 swz = chan_swz;
141 } else if (swz != chan_swz) {
r500_fragprog.c 201 unsigned int swz = GET_SWZ(reg.Swizzle, i); local
202 if (swz == RC_SWIZZLE_UNUSED) {
206 if (swz >= 4)
227 unsigned int swz = GET_SWZ(reg.Swizzle, i); local
228 if (swz != RC_SWIZZLE_UNUSED && swz != RC_SWIZZLE_ZERO)
251 unsigned int swz = GET_SWZ(src.Swizzle, i); local
252 if (swz == RC_SWIZZLE_UNUSED || !GET_BIT(usemask, i))
  /external/mesa3d/src/mesa/program/
prog_parameter.c 97 GLuint swz[4]; local
101 swz[j] = j;
107 swz[j] = k;
116 swz[j] = swz[j-1];
120 *swizzleOut = MAKE_SWIZZLE4(swz[0], swz[1], swz[2], swz[3]);
335 GLuint swz = p->Size; /* 1, 2 or 3 for Y, Z, W * local
    [all...]
prog_instruction.h 53 #define SWIZZLE_ZERO 4 /**< For SWZ instruction only */
54 #define SWIZZLE_ONE 5 /**< For SWZ instruction only */
60 #define GET_SWZ(swz, idx) (((swz) >> ((idx)*3)) & 0x7)
62 /** Determine if swz contains SWIZZLE_ZERO/ONE/NIL for any components. */
63 #define HAS_EXTENDED_SWIZZLE(swz) (swz & 0x924)
199 * This will either be NEGATE_NONE or NEGATE_XYZW, except for the SWZ
  /external/mesa3d/src/compiler/glsl/
opt_vectorize.cpp 139 ir_swizzle *swz = (ir_swizzle *)ir; local
140 if (swz->val->type->is_vector()) {
141 swz->mask = *mask;
143 swz->type = glsl_type::get_instance(swz->type->base_type,
239 const ir_swizzle *swz)
241 return ((write_mask == WRITEMASK_X && swz->mask.x == SWIZZLE_X) ||
242 (write_mask == WRITEMASK_Y && swz->mask.x == SWIZZLE_Y) ||
243 (write_mask == WRITEMASK_Z && swz->mask.x == SWIZZLE_Z) ||
244 (write_mask == WRITEMASK_W && swz->mask.x == SWIZZLE_W))
    [all...]
  /external/mesa3d/src/gallium/drivers/nouveau/nv30/
nv30_texture.c 208 swizzle(const struct nv30_texfmt *fmt, unsigned cmp, unsigned swz)
210 uint32_t data = fmt->swz[swz].src << 8;
211 if (swz <= PIPE_SWIZZLE_W)
212 data |= fmt->swz[swz].cmp;
214 data |= fmt->swz[cmp].cmp;
258 so->swz = fmt->swizzle;
259 so->swz |= swizzle(fmt, 3, tmpl->swizzle_a);
260 so->swz |= swizzle(fmt, 0, tmpl->swizzle_r) << 2
    [all...]
nvfx_shader.h 413 #define swz(s,x,y,z,w) nvfx_src_swz((s), NVFX_SWZ_##x, NVFX_SWZ_##y, NVFX_SWZ_##z, NVFX_SWZ_##w) macro
430 uint8_t swz[4]; member in struct:nvfx_src
488 .swz = { 0, 1, 2, 3 },
499 dst.swz[NVFX_SWZ_X] = src.swz[x];
500 dst.swz[NVFX_SWZ_Y] = src.swz[y];
501 dst.swz[NVFX_SWZ_Z] = src.swz[z];
502 dst.swz[NVFX_SWZ_W] = src.swz[w]
    [all...]
nv30_format.h 23 } swz[6]; member in struct:nv30_texfmt
nvfx_fragprog.c 153 sr |= ((src.swz[0] << NVFX_FP_REG_SWZ_X_SHIFT) |
154 (src.swz[1] << NVFX_FP_REG_SWZ_Y_SHIFT) |
155 (src.swz[2] << NVFX_FP_REG_SWZ_Z_SHIFT) |
156 (src.swz[3] << NVFX_FP_REG_SWZ_W_SHIFT));
407 src.swz[0] = fsrc->Register.SwizzleX;
408 src.swz[1] = fsrc->Register.SwizzleY;
409 src.swz[2] = fsrc->Register.SwizzleZ;
410 src.swz[3] = fsrc->Register.SwizzleW;
483 addend.swz[0] = fsrc->Register.SwizzleX;
484 addend.swz[1] = fsrc->Register.SwizzleY
    [all...]
nvfx_vertprog.c 163 sr |= ((src.swz[0] << NVFX_VP(SRC_SWZ_X_SHIFT)) |
164 (src.swz[1] << NVFX_VP(SRC_SWZ_Y_SHIFT)) |
165 (src.swz[2] << NVFX_VP(SRC_SWZ_Z_SHIFT)) |
166 (src.swz[3] << NVFX_VP(SRC_SWZ_W_SHIFT)));
395 src.swz[0] = fsrc->Register.SwizzleX;
396 src.swz[1] = fsrc->Register.SwizzleY;
397 src.swz[2] = fsrc->Register.SwizzleZ;
398 src.swz[3] = fsrc->Register.SwizzleW;
582 nvfx_vp_emit(vpc, arith(sat, VEC, ADD, dst, mask, swz(tmp, X, X, X, X), none, swz(tmp, Y, Y, Y, Y)))
    [all...]
  /external/mesa3d/src/mesa/drivers/dri/i965/
brw_reg.h 75 #define BRW_GET_SWZ(swz, idx) (((swz) >> ((idx)*2)) & 0x3)
124 * Return the result of applying swizzle \p swz to shuffle the bits of \p mask
128 brw_apply_swizzle_to_mask(unsigned swz, unsigned mask)
133 if (mask & (1 << BRW_GET_SWZ(swz, i)))
141 * Return the result of applying the inverse of swizzle \p swz to shuffle the
146 brw_apply_inv_swizzle_to_mask(unsigned swz, unsigned mask)
152 result |= 1 << BRW_GET_SWZ(swz, i);
175 unsigned swz[4]; local
178 last = swz[i] = (mask & (1 << i) ? i : last)
    [all...]
brw_vec4_copy_propagation.cpp 98 unsigned swz[4] = {}; local
107 swz[i] = i;
109 swz[i] = BRW_GET_SWZ(src.swizzle, i);
130 BRW_SWIZZLE4(swz[0], swz[1],
131 swz[2], swz[3])));
  /external/deqp/external/vulkancts/modules/vulkan/pipeline/
vktPipelineImageSamplingInstance.cpp     [all...]
  /external/mesa3d/src/mesa/state_tracker/
st_sampler_view.c 139 unsigned i, swz[4]; local
153 swz[i] = GET_SWZ(swizzle2, s);
156 swz[i] = SWIZZLE_ZERO;
159 swz[i] = SWIZZLE_ONE;
163 swz[i] = SWIZZLE_X;
167 return MAKE_SWIZZLE4(swz[0], swz[1], swz[2], swz[3]);
  /external/mesa3d/src/amd/vulkan/
vk_format.h 298 const unsigned char swz[4],
301 dst[0] = radv_swizzle_conv(VK_COMPONENT_SWIZZLE_R, swz, mapping->r);
302 dst[1] = radv_swizzle_conv(VK_COMPONENT_SWIZZLE_G, swz, mapping->g);
303 dst[2] = radv_swizzle_conv(VK_COMPONENT_SWIZZLE_B, swz, mapping->b);
304 dst[3] = radv_swizzle_conv(VK_COMPONENT_SWIZZLE_A, swz, mapping->a);
  /external/mesa3d/src/gallium/drivers/nouveau/nv50/
nv50_tex.c 31 nv50_tic_swizzle(const struct nv50_format *fmt, unsigned swz, bool tex_int)
33 switch (swz) {
71 uint32_t swz[4]; local
100 swz[0] = nv50_tic_swizzle(fmt, view->pipe.swizzle_r, tex_int);
101 swz[1] = nv50_tic_swizzle(fmt, view->pipe.swizzle_g, tex_int);
102 swz[2] = nv50_tic_swizzle(fmt, view->pipe.swizzle_b, tex_int);
103 swz[3] = nv50_tic_swizzle(fmt, view->pipe.swizzle_a, tex_int);
109 (swz[0] << G80_TIC_0_X_SOURCE__SHIFT) |
110 (swz[1] << G80_TIC_0_Y_SOURCE__SHIFT) |
111 (swz[2] << G80_TIC_0_Z_SOURCE__SHIFT)
    [all...]
  /external/deqp/modules/gles3/functional/
es3fTextureSwizzleTests.cpp 49 static int swizzle (const tcu::RGBA& c, deUint32 swz)
51 switch (swz)
312 deUint32 swz = swizzles[swzNdx].swizzle; local
313 deUint32 swzR = (chanNdx == 0) ? swz : defaultSwizzles[0];
314 deUint32 swzG = (chanNdx == 1) ? swz : defaultSwizzles[1];
315 deUint32 swzB = (chanNdx == 2) ? swz : defaultSwizzles[2];
316 deUint32 swzA = (chanNdx == 3) ? swz : defaultSwizzles[3];

Completed in 849 milliseconds

1 2 3