Searched defs:swizzle (Results 51 - 75 of 124) sorted by relevance

12345

/external/mesa3d/src/gallium/drivers/r300/
H A Dr300_state_derived.c138 uint16_t type, swizzle; local
172 /* Obtain the swizzle for this attribute. Note that the default
173 * swizzle in the hardware is not XYZW! */
174 swizzle = r300_translate_vertex_data_swizzle(format);
179 vstream->vap_prog_stream_cntl_ext[i >> 1] |= swizzle << 16;
182 vstream->vap_prog_stream_cntl_ext[i >> 1] |= swizzle;
630 /* Apply inverse swizzle of the format. */
631 util_format_unswizzle_4f(border_swizzled, border, desc->swizzle);
836 view->swizzle, FALSE);
H A Dr300_texture.c46 unsigned char swizzle[4]; local
63 util_format_compose_swizzles(swizzle_format, swizzle_view, swizzle);
65 memcpy(swizzle, swizzle_format, 4);
68 /* Get swizzle. */
70 switch (swizzle[i]) {
171 /* The RGTC1_SNORM and LATC1_SNORM swizzle is done in the shader. */
180 result |= r300_get_swizzle_combined(desc->swizzle, swizzle_view,
183 result |= r300_get_swizzle_combined(desc->swizzle, swizzle_view,
513 /* Shader output formats. This is essentially the swizzle from the shader
/external/mesa3d/src/gallium/state_trackers/xa/
H A Dxa_composite.c282 boolean swizzle = FALSE; local
310 swizzle = ((src_hw_type == xa_type_argb &&
315 if (!swizzle && (src_hw_type != src_pic_type))
318 if (swizzle)
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_eu.h89 GLuint swizzle:8; /* src only, align16 only */ member in struct:brw_reg::__anon15088::__anon15089
183 * \param swizzle one of BRW_SWIZZLE_x
193 GLuint swizzle,
217 * set swizzle and writemask to W, as the lower bits of subnr will
222 reg.dw1.bits.swizzle = swizzle;
531 /* If/else instructions break in align16 mode if writemask & swizzle
675 reg.dw1.bits.swizzle = BRW_SWIZZLE4(BRW_GET_SWZ(reg.dw1.bits.swizzle, x),
676 BRW_GET_SWZ(reg.dw1.bits.swizzle,
186 brw_reg( GLuint file, GLuint nr, GLuint subnr, GLuint type, GLuint vstride, GLuint width, GLuint hstride, GLuint swizzle, GLuint writemask ) argument
[all...]
/external/mesa3d/src/mesa/drivers/dri/r200/
H A Dr200_vertprog.c232 static INLINE unsigned long t_swizzle(GLubyte swizzle) argument
235 return swizzle;
/external/mesa3d/src/mesa/main/
H A Datifragshader.c417 GLuint swizzle = curProg->SetupInst[j][i].swizzle; local
419 swizzle);
443 _mesa_PassTexCoordATI(GLuint dst, GLuint coord, GLenum swizzle) argument
478 if (!(swizzle >= GL_SWIZZLE_STR_ATI) && (swizzle <= GL_SWIZZLE_STQ_DQ_ATI)) {
479 _mesa_error(ctx, GL_INVALID_ENUM, "glPassTexCoordATI(swizzle)");
482 if ((swizzle & 1) && (coord >= GL_REG_0_ATI)) {
483 _mesa_error(ctx, GL_INVALID_OPERATION, "glPassTexCoordATI(swizzle)");
489 (((swizzle
515 _mesa_SampleMapATI(GLuint dst, GLuint interp, GLenum swizzle) argument
[all...]
/external/mesa3d/src/mesa/program/
H A Dprog_print.c457 * Return a string representation of the given swizzle word.
459 * \param swizzle the swizzle field
464 _mesa_swizzle_string(GLuint swizzle, GLuint negateMask, GLboolean extended) argument
470 if (!extended && swizzle == SWIZZLE_NOOP && negateMask == 0)
471 return ""; /* no swizzle/negation */
478 s[i++] = swz[GET_SWZ(swizzle, 0)];
486 s[i++] = swz[GET_SWZ(swizzle, 1)];
494 s[i++] = swz[GET_SWZ(swizzle, 2)];
502 s[i++] = swz[GET_SWZ(swizzle,
510 _mesa_print_swizzle(GLuint swizzle) argument
[all...]
H A Dprogram_parser.h59 * field contain's the symbol's swizzle. (SWIZZLE_X/Y/Z/W)
105 unsigned swizzle:12; member in struct:asm_swizzle_mask
/external/skia/src/gpu/glsl/
H A DGrGLSLProgramBuilder.cpp326 GrSwizzle swizzle = this->shaderCaps()->configTextureSwizzle(config); local
328 swizzle,
356 GrSwizzle swizzle; local
357 swizzle.setFromKey(this->desc()->header().fOutputSwizzle);
358 if (swizzle != GrSwizzle::RGBA()) {
361 swizzle.c_str());
365 swizzle.c_str());
/external/skia/src/sksl/
H A DSkSLGLSLCodeGenerator.cpp367 void GLSLCodeGenerator::writeSwizzle(const Swizzle& swizzle) { argument
368 this->writeExpression(*swizzle.fBase, kPostfix_Precedence);
370 for (int c : swizzle.fComponents) {
/external/deqp/modules/gles2/scripts/
H A Dgenutil.py323 def swizzle(self, indexList): member in class:Vec
/external/deqp/modules/gles3/scripts/
H A Dgenutil.py381 def swizzle(self, indexList): member in class:Vec
/external/deqp/modules/gles31/scripts/
H A Dgenutil.py383 def swizzle(self, indexList): member in class:Vec
/external/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_tgsi.h90 unsigned swizzle:3; /* PIPE_SWIZZLE_x */ member in struct:lp_tgsi_channel_info
441 * AoS swizzle used:
/external/mesa3d/src/gallium/auxiliary/tgsi/
H A Dtgsi_text.c483 report_error(ctx, "Expected indirect register swizzle component `x', `y', `z' or `w'");
724 uint swizzle[4],
739 swizzle[i] = TGSI_SWIZZLE_X;
741 swizzle[i] = TGSI_SWIZZLE_Y;
743 swizzle[i] = TGSI_SWIZZLE_Z;
745 swizzle[i] = TGSI_SWIZZLE_W;
747 report_error( ctx, "Expected register swizzle component `x', `y', `z' or `w'" );
764 uint swizzle[4]; local
805 /* Parse optional swizzle.
807 if (parse_optional_swizzle( ctx, swizzle,
722 parse_optional_swizzle( struct translate_ctx *ctx, uint swizzle[4], boolean *parsed_swizzle ) argument
881 uint swizzle[4]; local
[all...]
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_format.h185 * Output channel swizzle.
193 unsigned char swizzle[4]; member in struct:util_format_description
481 desc->swizzle[0] != UTIL_FORMAT_SWIZZLE_NONE;
488 desc->swizzle[1] != UTIL_FORMAT_SWIZZLE_NONE;
538 if (desc->swizzle[chan] < 4) {
768 switch (desc->swizzle[component]) {
795 return desc->swizzle[3] != UTIL_FORMAT_SWIZZLE_1;
1018 * swizzle vector components, this holds:
/external/mesa3d/src/gallium/drivers/i915/
H A Di915_fpc.h89 /* Having zero and one in here makes the definition of swizzle a lot
140 swizzle(int reg, uint x, uint y, uint z, uint w) function
163 /* These are special, and don't have swizzle/negate bits.
260 /* Additional swizzle supported in i915 */
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_bld_depth.c309 unsigned swizzle; local
315 swizzle = format_desc->swizzle[0];
316 assert(swizzle < 4);
321 if(format_desc->channel[swizzle].type == UTIL_FORMAT_TYPE_FLOAT) {
323 assert(swizzle == 0);
324 assert(format_desc->channel[swizzle].size == format_desc->block.bits);
326 else if(format_desc->channel[swizzle].type == UTIL_FORMAT_TYPE_UNSIGNED) {
328 assert(format_desc->channel[swizzle].normalized);
329 if (format_desc->channel[swizzle]
[all...]
/external/mesa3d/src/gallium/drivers/r300/compiler/
H A Dr3xx_vertprog.c39 * Take an already-setup and valid source then swizzle it appropriately to
116 static inline unsigned long t_swizzle(unsigned int swizzle) argument
119 return swizzle;
H A Dradeon_compiler_util.c64 * @return An initialized swizzle that has all of the unused channels set to
115 /* Reorder mask bits according to swizzle. */
116 unsigned swizzle_mask(unsigned swizzle, unsigned mask) argument
120 unsigned swz = GET_SWZ(swizzle, chan);
145 * @return A swizzle the results from converting old_swizzle using
251 * This function replaces each value 'swz' in swizzle with the value of
253 * in swizzle to Y, then conversion_swizzle should be Y___ (0xff9). If you want
254 * to change all the Y's in swizzle to X, then conversion_swizzle should be
256 * conversion swizzle should be YX__ (0xfc1).
257 * @param swizzle Th
261 rc_rewrite_swizzle( unsigned int swizzle, unsigned int conversion_swizzle) argument
288 lmul_swizzle(unsigned int swizzle, struct rc_src_register srcreg) argument
330 rc_source_type_swz(unsigned int swizzle) argument
717 rc_get_constant_value( struct radeon_compiler * c, unsigned int index, unsigned int swizzle, unsigned int negate, unsigned int chan) argument
742 rc_get_scalar_src_swz(unsigned int swizzle) argument
[all...]
H A Dradeon_dataflow.c520 unsigned int swizzle)
529 shared_mask = rc_src_reads_dst_mask(file, index, swizzle,
538 read_mask = rc_swizzle_to_writemask(swizzle);
515 get_readers_read_callback( struct get_readers_callback_data * cb_data, unsigned int has_rel_addr, rc_register_file file, unsigned int index, unsigned int swizzle) argument
/external/mesa3d/src/gallium/drivers/r600/
H A Devergreen_compute_internal.c505 unsigned char swizzle[4], array_mode = 0, tile_type = 0; local
508 swizzle[0] = 0;
509 swizzle[1] = 1;
510 swizzle[2] = 2;
511 swizzle[3] = 3;
514 view->base.format, swizzle, &word4, &yuv_format);
H A Dr600_texture.c799 unsigned char swizzle[4]; local
809 util_format_compose_swizzles(swizzle_format, swizzle_view, swizzle);
811 memcpy(swizzle, swizzle_format, 4);
814 /* Get swizzle. */
816 switch (swizzle[i]) {
860 word4 |= r600_get_swizzle_combined(desc->swizzle, swizzle_view);
/external/mesa3d/src/gallium/drivers/radeonsi/
H A Dradeonsi_pipe.h234 static INLINE unsigned si_map_swizzle(unsigned swizzle) argument
236 switch (swizzle) {
H A Dradeonsi_shader.c357 unsigned swizzle)
373 (reg->Register.Index * 4) + swizzle);
353 fetch_constant( struct lp_build_tgsi_context * bld_base, const struct tgsi_full_src_register *reg, enum tgsi_opcode_type type, unsigned swizzle) argument

Completed in 768 milliseconds

12345