/external/swiftshader/src/Shader/ |
D | PixelShader.cpp | 304 int swizzle = inst->src[argument].swizzle; in analyzeInterpolants() local 334 if((inst->src[0].swizzle & 0x30) == 0x20) // .xyz in analyzeInterpolants() 400 interpolant[index][0] |= swizzleContainsComponentMasked(swizzle, 0, 0x7); in analyzeInterpolants() 401 interpolant[index][1] |= swizzleContainsComponentMasked(swizzle, 1, 0x7); in analyzeInterpolants() 402 interpolant[index][2] |= swizzleContainsComponentMasked(swizzle, 2, 0x7); in analyzeInterpolants() 403 interpolant[index][3] |= swizzleContainsComponentMasked(swizzle, 3, 0x7); in analyzeInterpolants() 410 interpolant[index + 1][0] |= swizzleContainsComponentMasked(swizzle, 0, 0x7); in analyzeInterpolants() 411 interpolant[index + 1][1] |= swizzleContainsComponentMasked(swizzle, 1, 0x7); in analyzeInterpolants() 412 interpolant[index + 1][2] |= swizzleContainsComponentMasked(swizzle, 2, 0x7); in analyzeInterpolants() 413 interpolant[index + 1][3] |= swizzleContainsComponentMasked(swizzle, 3, 0x7); in analyzeInterpolants() [all …]
|
/external/swiftshader/src/Pipeline/ |
D | PixelShader.cpp | 304 int swizzle = inst->src[argument].swizzle; in analyzeInterpolants() local 334 if((inst->src[0].swizzle & 0x30) == 0x20) // .xyz in analyzeInterpolants() 400 interpolant[index][0] |= swizzleContainsComponentMasked(swizzle, 0, 0x7); in analyzeInterpolants() 401 interpolant[index][1] |= swizzleContainsComponentMasked(swizzle, 1, 0x7); in analyzeInterpolants() 402 interpolant[index][2] |= swizzleContainsComponentMasked(swizzle, 2, 0x7); in analyzeInterpolants() 403 interpolant[index][3] |= swizzleContainsComponentMasked(swizzle, 3, 0x7); in analyzeInterpolants() 410 interpolant[index + 1][0] |= swizzleContainsComponentMasked(swizzle, 0, 0x7); in analyzeInterpolants() 411 interpolant[index + 1][1] |= swizzleContainsComponentMasked(swizzle, 1, 0x7); in analyzeInterpolants() 412 interpolant[index + 1][2] |= swizzleContainsComponentMasked(swizzle, 2, 0x7); in analyzeInterpolants() 413 interpolant[index + 1][3] |= swizzleContainsComponentMasked(swizzle, 3, 0x7); in analyzeInterpolants() [all …]
|
/external/deqp/external/openglcts/modules/common/ |
D | glcShaderStructTests.cpp | 232 { c.color.xyz() = c.coords.swizzle(0, 1, 2); }); in init() 256 { c.color.xyz() = c.coords.swizzle(0, 1, 2); }); in init() 279 { c.color.xyz() = c.coords.swizzle(3, 2, 1); }); in init() 304 { c.color.xyz() = c.coords.swizzle(1, 2, 0); }); in init() 327 { c.color.xyz() = c.coords.swizzle(2, 1, 0); }); in init() 352 { c.color.xyz() = c.coords.swizzle(2, 1, 0); }); in init() 415 { c.color.xyz() = c.coords.swizzle(2, 0, 3); }); in init() 481 { c.color.xyz() = c.coords.swizzle(2, 0, 3); }); in init() 505 { c.color.xyz() = c.coords.swizzle(0, 1, 2); }); in init() 534 { c.color.xyz() = c.coords.swizzle(0, 1, 2); }); in init() [all …]
|
D | glcShaderIndexingTests.cpp | 94 c.color.xy() = 1.875f * c.coords.swizzle(0, 1); in evalArrayCoordsVec2() 98 c.color.xyz() = 1.875f * c.coords.swizzle(0, 1, 2); in evalArrayCoordsVec3() 126 c.color.xy() = 1.875f * c.constCoords.swizzle(0, 1); in evalArrayUniformVec2() 130 c.color.xyz() = 1.875f * c.constCoords.swizzle(0, 1, 2); in evalArrayUniformVec3() 213 arr[0] = constCoords.swizzle(0, 1); in setupUniforms() 214 arr[1] = constCoords.swizzle(0, 1) * 0.5f; in setupUniforms() 215 arr[2] = constCoords.swizzle(0, 1) * 0.25f; in setupUniforms() 216 arr[3] = constCoords.swizzle(0, 1) * 0.125f; in setupUniforms() 222 arr[0] = constCoords.swizzle(0, 1, 2); in setupUniforms() 223 arr[1] = constCoords.swizzle(0, 1, 2) * 0.5f; in setupUniforms() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/MC/AMDGPU/ |
D | ds-err.s | 41 ds_swizzle_b32 v8, v2 offset:swizzle(quad_perm, 0, 1, 2, 3) 44 ds_swizzle_b32 v8, v2 offset:swizzle(XXX,1) 47 ds_swizzle_b32 v8, v2 offset:swizzle(QUAD_PERM 50 ds_swizzle_b32 v8, v2 offset:swizzle(QUAD_PERM, 0, 1, 2) 53 ds_swizzle_b32 v8, v2 offset:swizzle(QUAD_PERM, 0, 1, 2, 3 56 ds_swizzle_b32 v8, v2 offset:swizzle(QUAD_PERM, 0, 1, 2, 3, 4) 59 ds_swizzle_b32 v8, v2 offset:swizzle(QUAD_PERM, -1, 1, 2, 3) 62 ds_swizzle_b32 v8, v2 offset:swizzle(QUAD_PERM, 4, 1, 2, 3) 65 ds_swizzle_b32 v8, v2 offset:swizzle(SWAP,0) 68 ds_swizzle_b32 v8, v2 offset:swizzle(SWAP,3) [all …]
|
D | ds.s | 530 ds_swizzle_b32 v8, v2 offset:swizzle(QUAD_PERM, 0, 1, 2, 3) 534 ds_swizzle_b32 v8, v2 offset:swizzle(QUAD_PERM, 2, 1, 3, 3) 538 ds_swizzle_b32 v8, v2 offset:swizzle(SWAP,1) 542 ds_swizzle_b32 v8, v2 offset:swizzle(SWAP,2) 546 ds_swizzle_b32 v8, v2 offset:swizzle(SWAP,4) 550 ds_swizzle_b32 v8, v2 offset:swizzle(SWAP,8) 554 ds_swizzle_b32 v8, v2 offset:swizzle(SWAP,16) 558 ds_swizzle_b32 v8, v2 offset:swizzle(REVERSE,2) 562 ds_swizzle_b32 v8, v2 offset:swizzle(REVERSE,4) 566 ds_swizzle_b32 v8, v2 offset:swizzle(REVERSE,8) [all …]
|
/external/deqp/modules/gles3/functional/ |
D | es3fShaderStructTests.cpp | 217 c.color.xyz() = c.coords.swizzle(0,1,2); in init() 244 c.color.xyz() = c.coords.swizzle(0,1,2); in init() 270 c.color.xyz() = c.coords.swizzle(3,2,1); in init() 298 c.color.xyz() = c.coords.swizzle(1,2,0); in init() 324 c.color.xyz() = c.coords.swizzle(2,1,0); in init() 350 c.color.xyz() = c.coords.swizzle(2,1,0); in init() 414 c.color.xyz() = c.coords.swizzle(2,0,3); in init() 478 c.color.xyz() = c.coords.swizzle(2,0,3); in init() 505 c.color.xyz() = c.coords.swizzle(0,1,2); in init() 594 c.color.xyz() = c.coords.swizzle(0,1,2); in init() [all …]
|
D | es3fShaderOperatorTests.cpp | 218 …or = sequenceNoSideEffCase0 (ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0), ctx… in evalSequenceNoSideEffCase0() 220 …deEffCase2 (ctx.in[0].z() > 0.0f, ctx.in[1].x() > 0.0f, ctx.in[2].swizzle(2, 1)).asFloat();… in evalSequenceNoSideEffCase2() 221 …uenceNoSideEffCase3 (ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0).asInt(), greate… in evalSequenceNoSideEffCase3() 222 …lor = sequenceSideEffCase0 (ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0), ctx… in evalSequenceSideEffCase0() 224 …eEffCase2 (ctx.in[0].z() > 0.0f, ctx.in[1].x() > 0.0f, ctx.in[2].swizzle(2, 1)).asFloat();… in evalSequenceSideEffCase2() 225 …quenceSideEffCase3 (ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0).asInt(), greate… in evalSequenceSideEffCase3() 758 const char* swizzle = s_inSwizzles[i][inSize-1]; in setupShaderData() local 773 op << prefix << "in" << i << "." << swizzle; in setupShaderData() 901 …void eval_##FUNC_NAME##_float (ShaderEvalContext& c) { c.color.x() = FUNC_NAME(c.in[0].swizzle(2))… 902 …void eval_##FUNC_NAME##_vec2 (ShaderEvalContext& c) { c.color.yz() = FUNC_NAME(c.in[0].swizzle(3, … [all …]
|
D | es3fShaderIndexingTests.cpp | 103 void evalArrayCoordsVec2 (ShaderEvalContext& c) { c.color.xy() = 1.875f * c.coords.swizzle(0,1); } in evalArrayCoordsVec2() 104 void evalArrayCoordsVec3 (ShaderEvalContext& c) { c.color.xyz() = 1.875f * c.coords.swizzle(0,1,2)… in evalArrayCoordsVec3() 119 void evalArrayUniformVec2 (ShaderEvalContext& c) { c.color.xy() = 1.875f * c.constCoords.swizzle(0… in evalArrayUniformVec2() 120 void evalArrayUniformVec3 (ShaderEvalContext& c) { c.color.xyz() = 1.875f * c.constCoords.swizzle(… in evalArrayUniformVec3() 191 arr[0] = constCoords.swizzle(0,1); in setupUniforms() 192 arr[1] = constCoords.swizzle(0,1) * 0.5f; in setupUniforms() 193 arr[2] = constCoords.swizzle(0,1) * 0.25f; in setupUniforms() 194 arr[3] = constCoords.swizzle(0,1) * 0.125f; in setupUniforms() 200 arr[0] = constCoords.swizzle(0,1,2); in setupUniforms() 201 arr[1] = constCoords.swizzle(0,1,2) * 0.5f; in setupUniforms() [all …]
|
/external/deqp/modules/gles2/functional/ |
D | es2fShaderStructTests.cpp | 248 c.color.xyz() = c.coords.swizzle(0,1,2); in init() 275 c.color.xyz() = c.coords.swizzle(0,1,2); in init() 301 c.color.xyz() = c.coords.swizzle(3,2,1); in init() 329 c.color.xyz() = c.coords.swizzle(1,2,0); in init() 355 c.color.xyz() = c.coords.swizzle(2,1,0); in init() 381 c.color.xyz() = c.coords.swizzle(2,1,0); in init() 445 c.color.xyz() = c.coords.swizzle(2,0,3); in init() 509 c.color.xyz() = c.coords.swizzle(2,0,3); in init() 536 c.color.xyz() = c.coords.swizzle(0,1,2); in init() 623 c.color.xyz() = c.coords.swizzle(0,1,2); in init() [all …]
|
D | es2fShaderOperatorTests.cpp | 175 …color = sequenceNoSideEffCase0(ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0), ctx.… in evalSequenceNoSideEffCase0() 177 …enceNoSideEffCase2(ctx.in[0].z() > 0.0f, ctx.in[1].x() > 0.0f, ctx.in[2].swizzle(2, 1)).asFloat();… in evalSequenceNoSideEffCase2() 178 …equenceNoSideEffCase3(ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0).asInt(), greate… in evalSequenceNoSideEffCase3() 179 …x.color = sequenceSideEffCase0(ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0), ctx.… in evalSequenceSideEffCase0() 181 …quenceSideEffCase2(ctx.in[0].z() > 0.0f, ctx.in[1].x() > 0.0f, ctx.in[2].swizzle(2, 1)).asFloat();… in evalSequenceSideEffCase2() 182 … sequenceSideEffCase3(ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0).asInt(), greate… in evalSequenceSideEffCase3() 479 const char* swizzle = s_inSwizzles[i][inSize-1]; in ShaderOperatorCase() local 494 op << prefix << "in" << i << "." << swizzle; in ShaderOperatorCase() 620 …void eval_##FUNC_NAME##_float (ShaderEvalContext& c) { c.color.x() = FUNC_NAME(c.in[0].swizzle(2))… 621 …void eval_##FUNC_NAME##_vec2 (ShaderEvalContext& c) { c.color.yz() = FUNC_NAME(c.in[0].swizzle(3, … [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/ |
D | vktShaderRenderStructTests.cpp | 178 c.color.xyz() = c.coords.swizzle(0, 1, 2); in init() 209 c.color.xyz() = c.coords.swizzle(0, 1, 2); in init() 238 c.color.xyz() = c.coords.swizzle(3, 2, 1); in init() 271 c.color.xyz() = c.coords.swizzle(1,2,0); in init() 302 c.color.xyz() = c.coords.swizzle(2, 1, 0); in init() 333 c.color.xyz() = c.coords.swizzle(2, 1, 0); in init() 408 c.color.xyz() = c.coords.swizzle(2, 0, 3); in init() 483 c.color.xyz() = c.coords.swizzle(2, 0, 3); in init() 513 c.color.xyz() = c.coords.swizzle(0, 1, 2); in init() 549 c.color.xyz() = c.coords.swizzle(0, 1, 2); in init() [all …]
|
D | vktShaderRenderOperatorTests.cpp | 201 …or = sequenceNoSideEffCase0 (ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0), ctx… in evalSequenceNoSideEffCase0() 203 …deEffCase2 (ctx.in[0].z() > 0.0f, ctx.in[1].x() > 0.0f, ctx.in[2].swizzle(2, 1)).asFloat();… in evalSequenceNoSideEffCase2() 204 …uenceNoSideEffCase3 (ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0).asInt(), greate… in evalSequenceNoSideEffCase3() 205 …lor = sequenceSideEffCase0 (ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0), ctx… in evalSequenceSideEffCase0() 207 …eEffCase2 (ctx.in[0].z() > 0.0f, ctx.in[1].x() > 0.0f, ctx.in[2].swizzle(2, 1)).asFloat();… in evalSequenceSideEffCase2() 208 …quenceSideEffCase3 (ctx.in[0].swizzle(1, 2, 3, 0), ctx.in[1].swizzle(3, 2, 1, 0).asInt(), greate… in evalSequenceSideEffCase3() 743 const char* swizzle = s_inSwizzles[inputNdx][inSize - 1]; in setupShaderData() local 758 op << prefix << "in" << inputNdx << "." << swizzle; in setupShaderData() 842 …void eval_##FUNC_NAME##_float (ShaderEvalContext& c) { c.color.x() = FUNC_NAME(c.in[0].swizzle(2))… 843 …void eval_##FUNC_NAME##_vec2 (ShaderEvalContext& c) { c.color.yz() = FUNC_NAME(c.in[0].swizzle(3, … [all …]
|
D | vktShaderRenderIndexingTests.cpp | 98 void evalArrayCoordsVec2 (ShaderEvalContext& c) { c.color.xy() = 1.875f * c.coords.swizzle(0,1); } in evalArrayCoordsVec2() 99 void evalArrayCoordsVec3 (ShaderEvalContext& c) { c.color.xyz() = 1.875f * c.coords.swizzle(0,1,2)… in evalArrayCoordsVec3() 114 void evalArrayUniformVec2 (ShaderEvalContext& c) { c.color.xy() = 1.875f * c.constCoords.swizzle(0… in evalArrayUniformVec2() 115 void evalArrayUniformVec3 (ShaderEvalContext& c) { c.color.xyz() = 1.875f * c.constCoords.swizzle(… in evalArrayUniformVec3() 186 arr[0] = constCoords.swizzle(0, 1).toWidth<4>(); in setup() 187 arr[1] = (constCoords.swizzle(0, 1) * 0.5f).toWidth<4>(); in setup() 188 arr[2] = (constCoords.swizzle(0, 1) * 0.25f).toWidth<4>(); in setup() 189 arr[3] = (constCoords.swizzle(0, 1) * 0.125f).toWidth<4>(); in setup() 193 arr[0] = constCoords.swizzle(0, 1, 2).toWidth<4>(); in setup() 194 arr[1] = (constCoords.swizzle(0, 1, 2) * 0.5f).toWidth<4>(); in setup() [all …]
|
/external/virglrenderer/src/gallium/auxiliary/util/ |
D | u_format.c | 74 desc->swizzle[3] != UTIL_FORMAT_SWIZZLE_1; in util_format_has_alpha() 86 desc->swizzle[0] == UTIL_FORMAT_SWIZZLE_X && in util_format_is_luminance() 87 desc->swizzle[1] == UTIL_FORMAT_SWIZZLE_X && in util_format_is_luminance() 88 desc->swizzle[2] == UTIL_FORMAT_SWIZZLE_X && in util_format_is_luminance() 89 desc->swizzle[3] == UTIL_FORMAT_SWIZZLE_1) { in util_format_is_luminance() 103 desc->swizzle[0] == UTIL_FORMAT_SWIZZLE_0 && in util_format_is_alpha() 104 desc->swizzle[1] == UTIL_FORMAT_SWIZZLE_0 && in util_format_is_alpha() 105 desc->swizzle[2] == UTIL_FORMAT_SWIZZLE_0 && in util_format_is_alpha() 106 desc->swizzle[3] == UTIL_FORMAT_SWIZZLE_X) { in util_format_is_alpha() 181 desc->swizzle[0] == UTIL_FORMAT_SWIZZLE_X && in util_format_is_luminance_alpha() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | i915_fragprog.c | 125 src = swizzle(src, X, Y, Z, ONE); in src_vector() 129 src = swizzle(src, W, ZERO, ZERO, ONE); in src_vector() 197 src = swizzle(src, in src_vector() 401 swizzle(tmp, ONE, ZERO, ONE, ONE), 0, 0); in upload_program() 454 swizzle(consts1, Z, ZERO, ZERO, ZERO), /* 1/(2pi) */ in upload_program() 455 swizzle(consts0, W, ZERO, ZERO, ZERO)); /* .75 */ in upload_program() 463 swizzle(consts0, X, ZERO, ZERO, ZERO), /* 2 */ in upload_program() 464 swizzle(consts0, Y, ZERO, ZERO, ZERO)); /* -1 */ in upload_program() 474 swizzle(tmp, ZERO, X, ZERO, ZERO), in upload_program() 475 negate(swizzle(tmp, ZERO, X, ZERO, ZERO), 0, 1, 0, 0), in upload_program() [all …]
|
/external/mesa3d/src/gallium/tests/graw/ |
D | tex-swizzle.c | 120 init_tex(const unsigned swizzle[4]) in init_tex() 142 sv_template.swizzle_r = swizzle[0]; in init_tex() 143 sv_template.swizzle_g = swizzle[1]; in init_tex() 144 sv_template.swizzle_b = swizzle[2]; in init_tex() 145 sv_template.swizzle_a = swizzle[3]; in init_tex() 163 init(const unsigned swizzle[4]) in init() 172 init_tex(swizzle); in init() 205 uint swizzle[4]; in main() local 208 swizzle[0] = PIPE_SWIZZLE_X; in main() 209 swizzle[1] = PIPE_SWIZZLE_Y; in main() [all …]
|
/external/mesa3d/src/mesa/main/ |
D | format_parser.py | 139 def __init__(self, swizzle): argument 141 if isinstance(swizzle, str): 142 swizzle = [Swizzle.__identity_str.index(c) for c in swizzle] 144 swizzle = list(swizzle) 145 for s in swizzle: 148 assert len(swizzle) <= 4 150 self.__list = swizzle + [Swizzle.SWIZZLE_NONE] * (4 - len(swizzle)) 229 …def __init__(self, name, layout, block_width, block_height, block_depth, channels, swizzle, colors… argument 254 assert isinstance(swizzle, Swizzle) 255 self.swizzle = swizzle [all …]
|
/external/mesa3d/src/gallium/auxiliary/translate/ |
D | translate_sse.c | 469 unsigned swizzle[4] = in translate_attr_convert() local 501 if (output_desc->swizzle[i] < 4) in translate_attr_convert() 502 swizzle[output_desc->swizzle[i]] = input_desc->swizzle[i]; in translate_attr_convert() 513 if (swizzle[i] == PIPE_SWIZZLE_0 in translate_attr_convert() 515 swizzle[i] = i; in translate_attr_convert() 519 if (swizzle[i] < 4) in translate_attr_convert() 520 needed_chans = MAX2(needed_chans, swizzle[i] + 1); in translate_attr_convert() 521 if (swizzle[i] < PIPE_SWIZZLE_0 && swizzle[i] != i) in translate_attr_convert() 633 if (swizzle[3] == PIPE_SWIZZLE_1 in translate_attr_convert() 635 swizzle[3] = PIPE_SWIZZLE_W; in translate_attr_convert() [all …]
|
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
D | ir-a2xx.c | 400 assert(!dst_reg->swizzle || (strlen(dst_reg->swizzle) == 4)); in instr_emit_alu() 402 assert(!src1_reg->swizzle || (strlen(src1_reg->swizzle) == 4)); in instr_emit_alu() 404 assert(!src2_reg->swizzle || (strlen(src2_reg->swizzle) == 4)); in instr_emit_alu() 492 int num, const char *swizzle, int flags) in ir2_reg_create() argument 496 DEBUG_MSG("%x, %d, %s", flags, num, swizzle); in ir2_reg_create() 500 reg->swizzle = ir2_strdup(instr->shader, swizzle); in ir2_reg_create() 530 assert(reg->swizzle); in reg_fetch_src_swiz() 532 DEBUG_MSG("fetch src R%d.%s", reg->num, reg->swizzle); in reg_fetch_src_swiz() 536 switch (reg->swizzle[i]) { in reg_fetch_src_swiz() 538 ERROR_MSG("invalid fetch src swizzle: %s", reg->swizzle); in reg_fetch_src_swiz() [all …]
|
/external/mesa3d/src/compiler/nir/ |
D | nir_search_helpers.h | 40 const uint8_t *swizzle) in is_pos_power_of_two() argument 51 if (val->i32[swizzle[i]] < 0) in is_pos_power_of_two() 53 if (!__is_power_of_two(val->i32[swizzle[i]])) in is_pos_power_of_two() 57 if (!__is_power_of_two(val->u32[swizzle[i]])) in is_pos_power_of_two() 70 const uint8_t *swizzle) in is_neg_power_of_two() argument 81 if (val->i32[swizzle[i]] > 0) in is_neg_power_of_two() 83 if (!__is_power_of_two(abs(val->i32[swizzle[i]]))) in is_neg_power_of_two() 96 const uint8_t *swizzle) in is_zero_to_one() argument 106 if (val->f32[swizzle[i]] < 0.0f || val->f32[swizzle[i]] > 1.0f) in is_zero_to_one() 119 UNUSED const uint8_t *swizzle) in is_not_const() argument
|
/external/mesa3d/src/intel/compiler/ |
D | brw_nir_opt_peephole_ffma.c | 72 uint8_t swizzle[4], bool *negate, bool *abs) in get_mul_for_src() 96 alu = get_mul_for_src(&alu->src[0], num_components, swizzle, negate, abs); in get_mul_for_src() 100 alu = get_mul_for_src(&alu->src[0], num_components, swizzle, negate, abs); in get_mul_for_src() 105 alu = get_mul_for_src(&alu->src[0], num_components, swizzle, negate, abs); in get_mul_for_src() 135 memcpy(swizzle_tmp, swizzle, 4*sizeof(uint8_t)); in get_mul_for_src() 137 swizzle[i] = swizzle_tmp[src->swizzle[i]]; in get_mul_for_src() 192 uint8_t add_mul_src, swizzle[4]; in brw_nir_opt_peephole_ffma_block() local 196 swizzle[i] = i; in brw_nir_opt_peephole_ffma_block() 203 swizzle, &negate, &abs); in brw_nir_opt_peephole_ffma_block() 244 ffma->src[i].swizzle[j] = mul->src[i].swizzle[swizzle[j]]; in brw_nir_opt_peephole_ffma_block()
|
D | brw_vec4_tes.cpp | 71 grf.swizzle = inst->src[i].swizzle; in setup_payload() 84 assert((brw_mask_for_swizzle(grf.swizzle) & 0x3) ^ in setup_payload() 85 (brw_mask_for_swizzle(grf.swizzle) & 0xc)); in setup_payload() 86 if (brw_mask_for_swizzle(grf.swizzle) & 0xc) { in setup_payload() 89 grf.swizzle -= BRW_SWIZZLE_ZZZZ; in setup_payload() 154 swizzle(src_reg(ATTR, 1, glsl_type::vec4_type), in nir_emit_intrinsic() 158 swizzle(src_reg(ATTR, 1, glsl_type::vec4_type), in nir_emit_intrinsic() 165 swizzle(src_reg(ATTR, 0, glsl_type::vec4_type), in nir_emit_intrinsic() 200 src.swizzle = BRW_SWZ_COMP_INPUT(first_component); in nir_emit_intrinsic() 221 src.swizzle = BRW_SWZ_COMP_INPUT(first_component); in nir_emit_intrinsic() [all …]
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_fpc_translate.c | 211 src = swizzle(src, X, Y, Z, ONE); in src_vector() 216 src = swizzle(src, W, W, W, W); in src_vector() 250 src = swizzle(src, in src_vector() 537 swizzle(tmp, X, X, ONE, ONE), in i915_translate_instruction() 538 swizzle(tmp, X, ONE, ONE, ONE), 0); in i915_translate_instruction() 543 swizzle(tmp, X, Y, X, ONE), in i915_translate_instruction() 544 swizzle(tmp, X, X, ONE, ONE), 0); in i915_translate_instruction() 549 swizzle(tmp, X, X, Z, ONE), in i915_translate_instruction() 550 swizzle(tmp, Z, ONE, ONE, ONE), 0); in i915_translate_instruction() 556 swizzle(tmp, ONE, Z, Y, X), in i915_translate_instruction() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Analysis/DivergenceAnalysis/AMDGPU/ |
D | intrinsics.ll | 3 ; CHECK: DIVERGENT: %swizzle = call i32 @llvm.amdgcn.ds.swizzle(i32 %src, i32 100) #0 5 %swizzle = call i32 @llvm.amdgcn.ds.swizzle(i32 %src, i32 100) #0 6 store i32 %swizzle, i32 addrspace(1)* %out, align 4 10 declare i32 @llvm.amdgcn.ds.swizzle(i32, i32) #1
|