/external/deqp/modules/gles3/functional/ |
H A D | es3fTextureSwizzleTests.cpp | 21 * \brief Texture swizzle tests. 49 static int swizzle (const tcu::RGBA& c, deUint32 swz) function in namespace:deqp::gles3::Functional 65 static void swizzle (tcu::Surface& surface, deUint32 swzR, deUint32 swzG, deUint32 swzB, deUint32 swzA) function in namespace:deqp::gles3::Functional 72 surface.setPixel(x, y, tcu::RGBA(swizzle(p, swzR), swizzle(p, swzG), swizzle(p, swzB), swizzle(p, swzA))); 180 // Setup texture swizzle. 200 swizzle(referenceFrame, m_swizzleR, m_swizzleG, m_swizzleB, m_swizzleA); 226 : TestCaseGroup(context, "swizzle", "Textur 268 deUint32 swizzle; member in struct:deqp::gles3::Functional::__anon4548 [all...] |
/external/deqp/modules/gles3/scripts/ |
H A D | gen-swizzles.py | 171 def __init__(self, name, precision, dataType, swizzle, inputs, outputs): 175 self.swizzle = swizzle 178 self.op = "out0 = in0.%s;" % swizzle 260 swizzle = "".join(map(lambda x: swizzleComponents[x], swizzleIndices)) variable 261 #print "%s %s .%s" % (precision, dataType, swizzle) 262 caseName = "%s_%s_%s" % (precision, dataType, swizzle) 264 outputs = map(lambda x: x.swizzle(swizzleIndices), inputs) 266 vectorSwizzleCases.append(SwizzleCase(caseName, precision, dataType, swizzle, [("%s in0" % dataType, inputs)], [("%s out0" % outType, outputs)])) 273 # swizzle [all...] |
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_const.c | 365 const unsigned char *swizzle) 377 if(swizzle == NULL) 378 swizzle = default_swizzle; 380 elems[swizzle[0]] = lp_build_const_elem(gallivm, type, r); 381 elems[swizzle[1]] = lp_build_const_elem(gallivm, type, g); 382 elems[swizzle[2]] = lp_build_const_elem(gallivm, type, b); 383 elems[swizzle[3]] = lp_build_const_elem(gallivm, type, a); 425 const unsigned char *swizzle) 428 ((mask & (1 << swizzle[0])) >> swizzle[ 362 lp_build_const_aos(struct gallivm_state *gallivm, struct lp_type type, double r, double g, double b, double a, const unsigned char *swizzle) argument 422 lp_build_const_mask_aos_swizzled(struct gallivm_state *gallivm, struct lp_type type, unsigned mask, const unsigned char *swizzle) argument [all...] |
H A D | lp_bld_format_aos.c | 71 enum util_format_swizzle swizzle; local 78 swizzle = UTIL_FORMAT_SWIZZLE_1; 79 } else if (desc->swizzle[0] == UTIL_FORMAT_SWIZZLE_NONE) { 80 swizzle = UTIL_FORMAT_SWIZZLE_0; 82 swizzle = desc->swizzle[0]; 85 swizzle = desc->swizzle[chan]; 87 swizzles[chan] = swizzle; 287 if (desc->swizzle[ [all...] |
H A D | lp_bld_format_soa.c | 57 * XXX: Allow to control the depth swizzle with an additional parameter, 58 * as the caller may wish another depth swizzle, or retain the stencil 61 enum util_format_swizzle swizzle = format_desc->swizzle[0]; local 62 LLVMValueRef depth = lp_build_swizzle_soa_channel(bld, unswizzled, swizzle); 69 enum util_format_swizzle swizzle = format_desc->swizzle[chan]; local 70 swizzled_out[chan] = lp_build_swizzle_soa_channel(bld, unswizzled, swizzle);
|
H A D | lp_bld_swizzle.c | 431 * Extended swizzle of a single channel of a SoA vector. 435 * @param swizzle one of the PIPE_SWIZZLE_* 442 unsigned swizzle) 444 switch (swizzle) { 449 return unswizzled[swizzle]; 462 * Extended swizzle of a SoA vector. 485 * Do an extended swizzle of a SoA vector inplace. 440 lp_build_swizzle_soa_channel(struct lp_build_context *bld, const LLVMValueRef *unswizzled, unsigned swizzle) argument
|
H A D | lp_bld_tgsi_aos.c | 106 unsigned swizzle) 125 LLVMValueRef swizzle; local 140 swizzle = lp_build_const_int32(bld->bld_base.base.gallivm, 143 res = LLVMBuildInsertElement(builder, res, scalar, swizzle, ""); 177 unsigned swizzle) 190 unsigned swizzle) 204 unsigned swizzle) 1059 unsigned swizzle = bld.swizzles[chan]; local 1060 imm[swizzle] = parse.FullToken.FullImmediate.u[chan].Float; 102 emit_fetch_constant( struct lp_build_tgsi_context * bld_base, const struct tgsi_full_src_register * reg, enum tgsi_opcode_type stype, unsigned swizzle) argument 173 emit_fetch_immediate( struct lp_build_tgsi_context * bld_base, const struct tgsi_full_src_register * reg, enum tgsi_opcode_type stype, unsigned swizzle) argument 186 emit_fetch_input( struct lp_build_tgsi_context * bld_base, const struct tgsi_full_src_register * reg, enum tgsi_opcode_type stype, unsigned swizzle) argument 200 emit_fetch_temporary( struct lp_build_tgsi_context * bld_base, const struct tgsi_full_src_register * reg, enum tgsi_opcode_type stype, unsigned swizzle) argument
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_bld_blend_aos.c | 253 * @param swizzle swizzle values for RGBA 267 const unsigned char swizzle[4]) 273 unsigned alpha_swizzle = swizzle[3]; 283 if (swizzle[3] > UTIL_FORMAT_SWIZZLE_W || swizzle[3] == swizzle[0]) 336 color_mask = lp_build_const_mask_aos_swizzled(gallivm, bld.base.type, state->colormask, swizzle); 258 lp_build_blend_aos(struct gallivm_state *gallivm, const struct pipe_blend_state *blend, const enum pipe_format *cbuf_format, struct lp_type type, unsigned rt, LLVMValueRef src, LLVMValueRef dst, LLVMValueRef mask, LLVMValueRef const_, const unsigned char swizzle[4]) argument
|
H A D | lp_test_blend.c | 172 const unsigned char swizzle[4] = { 0, 1, 2, 3 }; local 198 res = lp_build_blend_aos(gallivm, blend, &format, type, rt, src, dst, NULL, con, swizzle);
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
H A D | r500_fragprog_emit.c | 359 static unsigned int translate_strq_swizzle(unsigned int swizzle) argument 364 swiz |= (GET_SWZ(swizzle, i) & 0x3) << i*2;
|
H A D | radeon_program_print.c | 186 static void rc_print_swizzle(FILE * f, unsigned int swizzle, unsigned int negate) argument 190 rc_swizzle swz = GET_SWZ(swizzle, comp);
|
/external/mesa3d/src/gallium/drivers/r300/ |
H A D | r300_fs.c | 178 unsigned char swizzle[4]; local 181 util_format_description(v->base.format)->swizzle, 182 v->swizzle, 183 swizzle); local 186 RC_MAKE_SWIZZLE(swizzle[0], swizzle[1], 187 swizzle[2], swizzle[3]); 190 RC_MAKE_SWIZZLE(v->swizzle[0], v->swizzle[ [all...] |
/external/mesa3d/src/gallium/drivers/r600/ |
H A D | r600_llvm.c | 25 unsigned swizzle) 28 radeon_llvm_reg_index_soa(reg->Register.Index, swizzle)); 62 unsigned swizzle) 21 llvm_fetch_const( struct lp_build_tgsi_context * bld_base, const struct tgsi_full_src_register *reg, enum tgsi_opcode_type type, unsigned swizzle) argument 58 llvm_fetch_system_value( struct lp_build_tgsi_context * bld_base, const struct tgsi_full_src_register *reg, enum tgsi_opcode_type type, unsigned swizzle) argument
|
/external/mesa3d/src/glsl/ |
H A D | opt_copy_propagation_elements.cpp | 57 acp_entry(ir_variable *lhs, ir_variable *rhs, int write_mask, int swizzle[4]) argument 62 memcpy(this->swizzle, swizzle, sizeof(this->swizzle)); 70 memcpy(this->swizzle, a->swizzle, sizeof(this->swizzle)); 76 int swizzle[4]; member in class:__anon15005::acp_entry 192 * visiting the swizzle itself. 216 ir_swizzle *swizzle 434 int swizzle[4]; local [all...] |
/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | gen7_wm_surface_state.c | 39 * Convert an swizzle enumeration (i.e. SWIZZLE_X) to one of the Gen7.5+ 43 swizzle_to_scs(GLenum swizzle) argument 45 switch (swizzle) { 60 assert(!"Should not get here: invalid swizzle mode"); 380 const int swizzle = local 383 surf->ss7.shader_channel_select_r = swizzle_to_scs(GET_SWZ(swizzle, 0)); 384 surf->ss7.shader_channel_select_g = swizzle_to_scs(GET_SWZ(swizzle, 1)); 385 surf->ss7.shader_channel_select_b = swizzle_to_scs(GET_SWZ(swizzle, 2)); 386 surf->ss7.shader_channel_select_a = swizzle_to_scs(GET_SWZ(swizzle, 3));
|
/external/mesa3d/src/mesa/main/ |
H A D | texparam.c | 210 set_swizzle_component(GLuint *swizzle, GLuint comp, GLuint swz) argument 216 GLuint s = (*swizzle & ~mask) | (swz << (3 * comp)); 217 *swizzle = s; 453 "glTexParameter(swizzle 0x%x)", params[0]); 478 "glTexParameter(swizzle 0x%x)", params[comp]);
|
/external/mesa3d/src/mesa/state_tracker/ |
H A D | st_atom_texture.c | 53 * Combine depth texture mode with "swizzle" so that depth mode swizzling 54 * takes place before texture swizzling, and return the resulting swizzle. 55 * If the format is not a depth format, return "swizzle" unchanged. 58 * \param swizzle Texture swizzle, a bitmask computed using MAKE_SWIZZLE4. 62 apply_depthmode(enum pipe_format format, GLuint swizzle, GLenum depthmode) argument 70 desc->swizzle[0] == UTIL_FORMAT_SWIZZLE_NONE) { 72 return swizzle; 76 swiz[i] = GET_SWZ(swizzle, i); 118 * Return TRUE if the swizzling described by "swizzle" an 127 check_sampler_swizzle(struct pipe_sampler_view *sv, GLuint swizzle, GLenum depthmode) argument 148 GLuint swizzle = apply_depthmode(stObj->pt->format, local [all...] |
/external/mesa3d/src/mesa/swrast/ |
H A D | s_atifragshader.c | 60 apply_swizzle(GLfloat values[4], GLuint swizzle) argument 69 switch (swizzle) { 260 GLuint swizzle = texinst->swizzle; local 272 apply_swizzle(machine->Registers[idx], swizzle); 282 GLuint swizzle = texinst->swizzle; local 295 apply_swizzle(tex_coords, swizzle);
|
H A D | s_texcombine.c | 563 * Apply X/Y/Z/W/0/1 swizzle to an array of colors/texels. 567 swizzle_texels(GLuint swizzle, GLuint count, float4_array texels) argument 569 const GLuint swzR = GET_SWZ(swizzle, 0); 570 const GLuint swzG = GET_SWZ(swizzle, 1); 571 const GLuint swzB = GET_SWZ(swizzle, 2); 572 const GLuint swzA = GET_SWZ(swizzle, 3);
|
/external/skia/src/codec/ |
H A D | SkMaskSwizzler.cpp | 119 // convert it back to 565. Instead, we should swizzle to 565 directly. 565 void SkMaskSwizzler::swizzle(void* dst, const uint8_t* SK_RESTRICT src) { function in class:SkMaskSwizzler
|
/external/skia/src/gpu/ |
H A D | GrFragmentProcessor.cpp | 211 const GrSwizzle& swizzle) { 214 SwizzleFragmentProcessor(const GrSwizzle& swizzle) argument 216 , fSwizzle(swizzle) { 221 const GrSwizzle& swizzle() const { return fSwizzle; } function in class:SwizzleFragmentProcessor 229 const GrSwizzle& swizzle = sfp.swizzle(); local 233 args.fOutputColor, args.fInputColor, swizzle.c_str()); 260 if (GrSwizzle::RGBA() == swizzle) { 263 sk_sp<GrFragmentProcessor> fpPipeline[] = { fp, sk_make_sp<SwizzleFragmentProcessor>(swizzle) }; 210 SwizzleOutput(sk_sp<GrFragmentProcessor> fp, const GrSwizzle& swizzle) argument
|
/external/skia/src/gpu/glsl/ |
H A D | GrGLSLShaderBuilder.cpp | 64 static inline void append_texture_swizzle(SkString* out, GrSwizzle swizzle) { argument 65 if (swizzle != GrSwizzle::RGBA()) { 66 out->appendf(".%s", swizzle.c_str());
|
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
H A D | vktPipelineImageViewTests.cpp | 73 static tcu::Vec4 swizzle (tcu::Vec4 inputData, 101 tcu::Vec4 ImageViewTest::swizzle (tcu::Vec4 inputData, VkComponentMapping componentMapping) function in class:vkt::pipeline::__anon3845::ImageViewTest 135 tcu::Vec4 swizzledScale = swizzle(lookupScale, m_componentMapping); 136 tcu::Vec4 swizzledBias = swizzle(lookupBias, m_componentMapping);
|
/external/deqp/framework/common/ |
H A D | tcuVector.hpp | 144 Vector<T, 1> swizzle (int a) const { DE_ASSERT(a >= 0 && a < Size); return Vector<T, 1>(m_data[a]); } function in class:tcu::Vector 145 Vector<T, 2> swizzle (int a, int b) const { DE_ASSERT(a >= 0 && a < Size); DE_ASSERT(b >= 0 && b < Size); return Vector<T, 2>(m_data[a], m_data[b]); } function in class:tcu::Vector 146 Vector<T, 3> swizzle (int a, int b, int c) const { DE_ASSERT(a >= 0 && a < Size); DE_ASSERT(b >= 0 && b < Size); DE_ASSERT(c >= 0 && c < Size); return Vector<T, 3>(m_data[a], m_data[b], m_data[c]); } function in class:tcu::Vector 147 Vector<T, 4> swizzle (int a, int b, int c, int d) const { DE_ASSERT(a >= 0 && a < Size); DE_ASSERT(b >= 0 && b < Size); DE_ASSERT(c >= 0 && c < Size); DE_ASSERT(d >= 0 && d < Size); return Vector<T, 4>(m_data[a], m_data[b], m_data[c], m_data[d]); } function in class:tcu::Vector
|
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_format.c | 76 swizzle_used[desc->swizzle[0]] = TRUE; 77 swizzle_used[desc->swizzle[1]] = TRUE; 78 swizzle_used[desc->swizzle[2]] = TRUE; 79 swizzle_used[desc->swizzle[3]] = TRUE; 112 desc->swizzle[0] == UTIL_FORMAT_SWIZZLE_X && 113 desc->swizzle[1] == UTIL_FORMAT_SWIZZLE_X && 114 desc->swizzle[2] == UTIL_FORMAT_SWIZZLE_X && 115 desc->swizzle[3] == UTIL_FORMAT_SWIZZLE_1) { 174 if (desc->swizzle[chan] != chan) 201 desc->swizzle[ 443 enum util_format_swizzle swizzle = dst_desc->swizzle[chan]; local [all...] |