/external/skia/src/gpu/vk/ |
GrVkUniformHandler.h | 64 GrSwizzle swizzle,
|
/external/skia/src/sksl/ |
SkSLCPPCodeGenerator.h | 44 void writeSwizzle(const Swizzle& swizzle) override;
|
/external/skqp/src/gpu/vk/ |
GrVkUniformHandler.h | 64 GrSwizzle swizzle,
|
/external/skqp/src/sksl/ |
SkSLCPPCodeGenerator.h | 44 void writeSwizzle(const Swizzle& swizzle) override;
|
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/ |
vktShaderRenderMatrixTests.cpp | 507 template <> inline tcu::Vec2 getInputValue<INPUTTYPE_DYNAMIC, TYPE_FLOAT_VEC2> (const ShaderEvalContext& evalCtx, int inputNdx) { DE_UNREF(inputNdx); return evalCtx.coords.swizzle(0, 1); } 508 template <> inline tcu::Vec3 getInputValue<INPUTTYPE_DYNAMIC, TYPE_FLOAT_VEC3> (const ShaderEvalContext& evalCtx, int inputNdx) { DE_UNREF(inputNdx); return evalCtx.coords.swizzle(0, 1, 2); } 509 template <> inline tcu::Vec4 getInputValue<INPUTTYPE_DYNAMIC, TYPE_FLOAT_VEC4> (const ShaderEvalContext& evalCtx, int inputNdx) { DE_UNREF(inputNdx); return evalCtx.coords.swizzle(0, 1, 2, 3); } 515 m.setColumn(0, evalCtx.in[0].swizzle(0,1)); 516 m.setColumn(1, evalCtx.in[1].swizzle(0,1)); 524 m.setColumn(0, evalCtx.in[0].swizzle(0,1,2)); 525 m.setColumn(1, evalCtx.in[1].swizzle(0,1,2)); 542 m.setColumn(0, evalCtx.in[0].swizzle(0,1)); 543 m.setColumn(1, evalCtx.in[1].swizzle(0,1)); 544 m.setColumn(2, evalCtx.in[2].swizzle(0,1)) [all...] |
vktShaderRenderTextureGatherTests.cpp | 263 stream << "[default swizzle state]"; 276 MaybeTextureSwizzle swizzle; local 278 swizzle.m_swizzle[0] = TEXTURESWIZZLECOMPONENT_LAST; 279 swizzle.m_swizzle[1] = TEXTURESWIZZLECOMPONENT_LAST; 280 swizzle.m_swizzle[2] = TEXTURESWIZZLECOMPONENT_LAST; 281 swizzle.m_swizzle[3] = TEXTURESWIZZLECOMPONENT_LAST; 282 swizzle.m_isSome = false; 284 return swizzle; 289 MaybeTextureSwizzle swizzle; local 291 swizzle.m_swizzle[0] = TEXTURESWIZZLECOMPONENT_R 1190 const tcu::Vector<TextureSwizzleComponent, 4>& swizzle = m_baseParams.textureSwizzle.getSwizzle(); local 2475 MaybeTextureSwizzle swizzle = MaybeTextureSwizzle::createSomeTextureSwizzle(); local [all...] |
/external/deqp/framework/common/ |
tcuTextureUtil.cpp | 584 return select(chnBits.swizzle(chnSwz.x(), chnSwz.y(), chnSwz.z(), chnSwz.w()), IVec4(0), chnMask); 655 return select(chnBits.swizzle(chnSwz.x(), chnSwz.y(), chnSwz.z(), chnSwz.w()), IVec4(0), chnMask); [all...] |
/external/deqp/modules/gles3/functional/ |
es3fShaderMatrixTests.cpp | 512 template <> inline tcu::Vec2 getInputValue<INPUTTYPE_DYNAMIC, TYPE_FLOAT_VEC2> (const ShaderEvalContext& evalCtx, int inputNdx) { DE_UNREF(inputNdx); return evalCtx.coords.swizzle(0, 1); } 513 template <> inline tcu::Vec3 getInputValue<INPUTTYPE_DYNAMIC, TYPE_FLOAT_VEC3> (const ShaderEvalContext& evalCtx, int inputNdx) { DE_UNREF(inputNdx); return evalCtx.coords.swizzle(0, 1, 2); } 514 template <> inline tcu::Vec4 getInputValue<INPUTTYPE_DYNAMIC, TYPE_FLOAT_VEC4> (const ShaderEvalContext& evalCtx, int inputNdx) { DE_UNREF(inputNdx); return evalCtx.coords.swizzle(0, 1, 2, 3); } 520 m.setColumn(0, evalCtx.in[0].swizzle(0,1)); 521 m.setColumn(1, evalCtx.in[1].swizzle(0,1)); 529 m.setColumn(0, evalCtx.in[0].swizzle(0,1,2)); 530 m.setColumn(1, evalCtx.in[1].swizzle(0,1,2)); 547 m.setColumn(0, evalCtx.in[0].swizzle(0,1)); 548 m.setColumn(1, evalCtx.in[1].swizzle(0,1)); 549 m.setColumn(2, evalCtx.in[2].swizzle(0,1)) [all...] |
/external/mesa3d/src/gallium/drivers/etnaviv/ |
etnaviv_compiler.c | 385 /* swizzle so that component with value is returned in all components */ 411 /* What if we can use a uniform with a different swizzle? */ 633 /* Check that a move instruction does not swizzle any of the components 680 * resulting shader: this means the MOV must not swizzle or 693 * and the MOV does not do a swizzle 711 * and the MOV does not do a swizzle 774 etna_native_to_src(struct etna_native_reg native, uint32_t swizzle) 780 .swiz = swizzle, 806 swizzle(struct etna_inst_src src, unsigned swizzle) function 1063 int swizzle = t->src[i]; local [all...] |
/external/deqp/external/openglcts/modules/common/ |
glcShaderRenderCase.hpp | 219 c.color.xy() = c.coords.swizzle(0, 1); 223 c.color.xyz() = c.coords.swizzle(0, 1, 2); 231 c.color = c.coords.swizzle(3, 2, 1, 0);
|
/external/deqp/modules/gles2/functional/ |
es2fTextureFormatTests.cpp | 284 case 0: gMin = spec.valueMin.swizzle(0, 1, 2, 3); gMax = spec.valueMax.swizzle(0, 1, 2, 3); break; 285 case 1: gMin = spec.valueMin.swizzle(2, 1, 0, 3); gMax = spec.valueMax.swizzle(2, 1, 0, 3); break; 286 case 2: gMin = spec.valueMin.swizzle(1, 2, 0, 3); gMax = spec.valueMax.swizzle(1, 2, 0, 3); break; 287 case 3: gMin = spec.valueMax.swizzle(0, 1, 2, 3); gMax = spec.valueMin.swizzle(0, 1, 2, 3); break; 288 case 4: gMin = spec.valueMax.swizzle(2, 1, 0, 3); gMax = spec.valueMin.swizzle(2, 1, 0, 3); break [all...] |
es2fShaderMatrixTests.cpp | 347 template <> inline tcu::Vec2 getInputValue<INPUTTYPE_DYNAMIC, TYPE_FLOAT_VEC2> (const ShaderEvalContext& evalCtx, int inputNdx) { DE_UNREF(inputNdx); return evalCtx.coords.swizzle(0, 1); } 348 template <> inline tcu::Vec3 getInputValue<INPUTTYPE_DYNAMIC, TYPE_FLOAT_VEC3> (const ShaderEvalContext& evalCtx, int inputNdx) { DE_UNREF(inputNdx); return evalCtx.coords.swizzle(0, 1, 2); } 349 template <> inline tcu::Vec4 getInputValue<INPUTTYPE_DYNAMIC, TYPE_FLOAT_VEC4> (const ShaderEvalContext& evalCtx, int inputNdx) { DE_UNREF(inputNdx); return evalCtx.coords.swizzle(0, 1, 2, 3); } 355 m.setColumn(0, evalCtx.in[0].swizzle(0,1)); 356 m.setColumn(1, evalCtx.in[1].swizzle(0,1)); 364 m.setColumn(0, evalCtx.in[0].swizzle(0,1,2)); 365 m.setColumn(1, evalCtx.in[1].swizzle(0,1,2)); 366 m.setColumn(2, evalCtx.in[2].swizzle(0,1,2)); 383 inline tcu::Vec3 reduceToVec3 (const tcu::Vec2& value) { return value.swizzle(0,1,0); } 388 inline tcu::Vec3 reduceToVec3 (const tcu::Mat4& value) { return value.getColumn(0).swizzle(0,1,2) + value.getColumn(1).swizzle(1,2,3) + value.getColumn(2).swizzle(2,3,0) + value.getColumn(3 (…) [all...] |
/external/deqp/modules/glshared/ |
glsShaderRenderCase.hpp | 178 inline void evalCoordsPassthroughXY (ShaderEvalContext& c) { c.color.xy() = c.coords.swizzle(0,1); } 179 inline void evalCoordsPassthroughXYZ (ShaderEvalContext& c) { c.color.xyz() = c.coords.swizzle(0,1,2); } 181 inline void evalCoordsSwizzleWZYX (ShaderEvalContext& c) { c.color = c.coords.swizzle(3,2,1,0); }
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
lp_bld_format_srgb.c | 341 unsigned chan_bits = dst_fmt->channel[dst_fmt->swizzle[chan]].size; 355 if (dst_fmt->swizzle[chan] <= PIPE_SWIZZLE_W) { 358 ls = dst_fmt->channel[dst_fmt->swizzle[chan]].shift;
|
lp_bld_tgsi_soa.c | 1098 unsigned swizzle = indirect_reg->Swizzle; local 1769 unsigned swizzle = swizzles[chan]; local 2798 unsigned swizzle; local [all...] |
lp_bld_swizzle.c | 152 * Swizzle one channel into other channels. 316 * Swizzle a vector consisting of an array of XYZW structs. 323 * @param swizzles the swizzle array 341 int swizzle = swizzles[i % num_swizzles]; local 343 if (swizzle == LP_BLD_SWIZZLE_DONTCARE) { 346 shuffles[i] = lp_build_const_int32(gallivm, swizzle); 563 * Extended swizzle of a single channel of a SoA vector. 567 * @param swizzle one of the PIPE_SWIZZLE_* 574 unsigned swizzle) 576 switch (swizzle) { [all...] |
/external/mesa3d/src/mesa/drivers/dri/i965/ |
brw_vec4_visitor.cpp | 298 if (src.file == UNIFORM && brw_is_single_value_swizzle(src.swizzle)) 327 * swizzle, abs, negate, and at least some parts of the register 433 tmp_src.swizzle = BRW_SWIZZLE_YYYY; 440 tmp_src.swizzle = BRW_SWIZZLE_XXXX; 494 src0.swizzle = BRW_SWIZZLE_XXXX; 516 src0.swizzle = BRW_SWIZZLE_XXXX; 682 this->swizzle = BRW_SWIZZLE_NOOP; 684 this->swizzle = brw_swizzle_for_size(type->vector_elements); 699 this->swizzle = BRW_SWIZZLE_NOOP; [all...] |
brw_vec4_tcs.cpp | 194 emit(MOV(dst, swizzle(src_reg(temp), BRW_SWIZZLE_WWWW))); 197 src.swizzle = BRW_SWZ_COMP_INPUT(first_component); 222 /* Read into a temporary and copy with a swizzle and writemask. */ 224 emit(MOV(dst, swizzle(src_reg(read->dst), 350 value = swizzle(retype(value, BRW_REGISTER_TYPE_DF), swiz); 369 emit_urb_write(swizzle(value, swiz), mask,
|
test_vec4_cmod_propagation.cpp | 670 src0.swizzle = src1.swizzle = src2.swizzle = BRW_SWIZZLE_XXXX; 674 tmp.swizzle = BRW_SWIZZLE_XXXX; 712 src0.swizzle = src1.swizzle = src2.swizzle = BRW_SWIZZLE_XXXX; 716 tmp.swizzle = BRW_SWIZZLE_XXXX; 753 src0.swizzle = BRW_SWIZZLE_XXXX; 757 mov_src.swizzle = BRW_SWIZZLE_XXXX [all...] |
brw_reg.h | 109 * Compute the swizzle obtained from the application of \p swz0 on the result 124 * Return the result of applying swizzle \p swz to shuffle the bits of \p mask 141 * Return the result of applying the inverse of swizzle \p swz to shuffle the 159 * Construct an identity swizzle for the set of enabled channels given by \p 161 * mask, assuming that \p mask is non-zero. The constructed swizzle will 167 * will be equivalent to the same instruction without swizzle: 184 * Construct an identity swizzle for the first \p n components of a vector. 197 * accessed by the specified swizzle \p swz. 261 unsigned swizzle:8; /* src only, align16 only */ member in struct:brw_reg::__anon30460::__anon30461 350 * \param swizzle one of BRW_SWIZZLE_ [all...] |
/external/deqp/external/vulkancts/modules/vulkan/texture/ |
vktSampleVerifier.cpp | 163 wrapCubemapEdge(coord.swizzle(0, 1), 164 m_levels[level].getSize().swizzle(0, 1), 179 wrapCubemapCorner(coord.swizzle(0, 1), 180 m_levels[level].getSize().swizzle(0, 1), 454 getFilteredSample2D(texelBase, weights.swizzle(0, 1), layer, level, resultMin, resultMax); 819 lodBounds = calcLodBounds(dPdx.swizzle(0, 1, 2), 820 dPdy.swizzle(0, 1, 2), 893 const Vec3 r = coord.swizzle(0, 1, 2); 894 const Vec3 drdx = dPdx.swizzle(0, 1, 2); 895 const Vec3 drdy = dPdy.swizzle(0, 1, 2) [all...] |
/external/mesa3d/src/gallium/drivers/svga/ |
svga_tgsi_insn.c | 129 * Apply a swizzle to a src_register, returning a new src_register 130 * Ex: swizzle(SRC.ZZYY, SWIZZLE_Z, SWIZZLE_W, SWIZZLE_X, SWIZZLE_Y) 134 swizzle(struct src_register src, function 141 x = (src.base.swizzle >> (x * 2)) & 0x3; 142 y = (src.base.swizzle >> (y * 2)) & 0x3; 143 z = (src.base.swizzle >> (z * 2)) & 0x3; 144 w = (src.base.swizzle >> (w * 2)) & 0x3; 146 src.base.swizzle = TRANSLATE_SWIZZLE(x, y, z, w); 153 * Apply a "scalar" swizzle to a src_register returning a new 154 * src_register where all the swizzle terms are the same 470 unsigned swizzle = (src0_swizzle >> (chan *2)) & 0x3; local 995 int idx = 0, swizzle = 0, i; local 1876 boolean swizzle = (emit->key.tex[unit].swizzle_r != PIPE_SWIZZLE_X || local [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
u_format.h | 210 * Output channel swizzle. 218 unsigned char swizzle[4]; member in struct:util_format_description 509 desc->swizzle[0] != PIPE_SWIZZLE_NONE; 516 desc->swizzle[1] != PIPE_SWIZZLE_NONE; 554 unsigned depth_channel = desc->swizzle[0]; 620 if (desc->swizzle[chan] < 4) { 862 switch (desc->swizzle[component]) { [all...] |
/external/skia/src/gpu/glsl/ |
GrGLSLShaderBuilder.cpp | 64 static inline void append_texture_swizzle(SkString* out, GrSwizzle swizzle) { 65 if (swizzle != GrSwizzle::RGBA()) { 66 out->appendf(".%s", swizzle.c_str());
|
/external/skqp/src/gpu/glsl/ |
GrGLSLShaderBuilder.cpp | 64 static inline void append_texture_swizzle(SkString* out, GrSwizzle swizzle) { 65 if (swizzle != GrSwizzle::RGBA()) { 66 out->appendf(".%s", swizzle.c_str());
|