/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/compiler/ |
H A D | r300_fragprog_swizzle.h | 35 unsigned int r300FPTranslateRGBSwizzle(unsigned int src, unsigned int swizzle); 36 unsigned int r300FPTranslateAlphaSwizzle(unsigned int src, unsigned int swizzle); 37 int r300_swizzle_is_native_basic(unsigned int swizzle);
|
H A D | radeon_compiler_util.h | 28 unsigned swizzle_mask(unsigned swizzle, unsigned mask); 43 unsigned int swizzle, 46 struct rc_src_register lmul_swizzle(unsigned int swizzle, struct rc_src_register srcreg); 58 unsigned int rc_source_type_swz(unsigned int swizzle); 97 unsigned int swizzle, 101 unsigned int rc_get_scalar_src_swz(unsigned int swizzle);
|
H A D | r300_fragprog_swizzle.c | 44 unsigned int hash; /**< swizzle value this matches */ 45 unsigned int base; /**< base value for hw swizzle */ 67 * Find a native RGB swizzle that matches the given swizzle. 70 static const struct swizzle_data* lookup_native_swizzle(unsigned int swizzle) argument 77 unsigned int swz = GET_SWZ(swizzle, comp); 91 * Determines if the given swizzle is valid for r300/r400. In most situations 95 int r300_swizzle_is_native_basic(unsigned int swizzle) argument 97 if(lookup_native_swizzle(swizzle)) 104 * Check whether the given instruction supports the swizzle an 206 r300FPTranslateRGBSwizzle(unsigned int src, unsigned int swizzle) argument 227 r300FPTranslateAlphaSwizzle(unsigned int src, unsigned int swizzle) argument [all...] |
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
H A D | r300_fragprog_swizzle.h | 35 unsigned int r300FPTranslateRGBSwizzle(unsigned int src, unsigned int swizzle); 36 unsigned int r300FPTranslateAlphaSwizzle(unsigned int src, unsigned int swizzle); 37 int r300_swizzle_is_native_basic(unsigned int swizzle);
|
H A D | radeon_compiler_util.h | 28 unsigned swizzle_mask(unsigned swizzle, unsigned mask); 43 unsigned int swizzle, 46 struct rc_src_register lmul_swizzle(unsigned int swizzle, struct rc_src_register srcreg); 58 unsigned int rc_source_type_swz(unsigned int swizzle); 97 unsigned int swizzle, 101 unsigned int rc_get_scalar_src_swz(unsigned int swizzle);
|
H A D | r300_fragprog_swizzle.c | 44 unsigned int hash; /**< swizzle value this matches */ 45 unsigned int base; /**< base value for hw swizzle */ 67 * Find a native RGB swizzle that matches the given swizzle. 70 static const struct swizzle_data* lookup_native_swizzle(unsigned int swizzle) argument 77 unsigned int swz = GET_SWZ(swizzle, comp); 91 * Determines if the given swizzle is valid for r300/r400. In most situations 95 int r300_swizzle_is_native_basic(unsigned int swizzle) argument 97 if(lookup_native_swizzle(swizzle)) 104 * Check whether the given instruction supports the swizzle an 206 r300FPTranslateRGBSwizzle(unsigned int src, unsigned int swizzle) argument 227 r300FPTranslateAlphaSwizzle(unsigned int src, unsigned int swizzle) argument [all...] |
/external/chromium_org/third_party/skia/src/gpu/ |
H A D | GrTextureAccess.cpp | 30 const char* swizzle, 32 this->reset(texture, swizzle, params); 36 const char* swizzle, 39 this->reset(texture, swizzle, filterMode, tileXAndY); 43 const char* swizzle, 46 SkASSERT(strlen(swizzle) >= 1 && strlen(swizzle) <= 4); 50 this->setSwizzle(swizzle); 54 const char* swizzle, 58 SkASSERT(strlen(swizzle) > 29 GrTextureAccess(GrTexture* texture, const char* swizzle, const GrTextureParams& params) argument 35 GrTextureAccess(GrTexture* texture, const char* swizzle, GrTextureParams::FilterMode filterMode, SkShader::TileMode tileXAndY) argument 42 reset(GrTexture* texture, const char* swizzle, const GrTextureParams& params) argument 53 reset(GrTexture* texture, const char* swizzle, GrTextureParams::FilterMode filterMode, SkShader::TileMode tileXAndY) argument 84 setSwizzle(const char* swizzle) argument [all...] |
/external/skia/src/gpu/ |
H A D | GrTextureAccess.cpp | 30 const char* swizzle, 32 this->reset(texture, swizzle, params); 36 const char* swizzle, 39 this->reset(texture, swizzle, filterMode, tileXAndY); 43 const char* swizzle, 46 SkASSERT(strlen(swizzle) >= 1 && strlen(swizzle) <= 4); 50 this->setSwizzle(swizzle); 54 const char* swizzle, 58 SkASSERT(strlen(swizzle) > 29 GrTextureAccess(GrTexture* texture, const char* swizzle, const GrTextureParams& params) argument 35 GrTextureAccess(GrTexture* texture, const char* swizzle, GrTextureParams::FilterMode filterMode, SkShader::TileMode tileXAndY) argument 42 reset(GrTexture* texture, const char* swizzle, const GrTextureParams& params) argument 53 reset(GrTexture* texture, const char* swizzle, GrTextureParams::FilterMode filterMode, SkShader::TileMode tileXAndY) argument 84 setSwizzle(const char* swizzle) argument [all...] |
/external/chromium_org/third_party/mesa/src/src/glsl/ |
H A D | ir_builder.cpp | 67 swizzle(operand a, int swizzle, int components) argument 72 GET_SWZ(swizzle, 0), 73 GET_SWZ(swizzle, 1), 74 GET_SWZ(swizzle, 2), 75 GET_SWZ(swizzle, 3), 97 return swizzle(a, SWIZZLE_XXXX, 4); 103 return swizzle(a, SWIZZLE_YYYY, 4); 109 return swizzle(a, SWIZZLE_ZZZZ, 4); 115 return swizzle( [all...] |
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:__anon13266::acp_entry 192 * visiting the swizzle itself. 216 ir_swizzle *swizzle 434 int swizzle[4]; local [all...] |
/external/mesa3d/src/glsl/ |
H A D | ir_builder.cpp | 67 swizzle(operand a, int swizzle, int components) argument 72 GET_SWZ(swizzle, 0), 73 GET_SWZ(swizzle, 1), 74 GET_SWZ(swizzle, 2), 75 GET_SWZ(swizzle, 3), 97 return swizzle(a, SWIZZLE_XXXX, 4); 103 return swizzle(a, SWIZZLE_YYYY, 4); 109 return swizzle(a, SWIZZLE_ZZZZ, 4); 115 return swizzle( [all...] |
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:__anon26839::acp_entry 192 * visiting the swizzle itself. 216 ir_swizzle *swizzle 434 int swizzle[4]; local [all...] |
/external/deqp/modules/gles2/functional/ |
H A D | es2fShaderStructTests.cpp | 238 c.color.xyz() = c.coords.swizzle(0,1,2); 265 c.color.xyz() = c.coords.swizzle(0,1,2); 291 c.color.xyz() = c.coords.swizzle(3,2,1); 319 c.color.xyz() = c.coords.swizzle(1,2,0); 345 c.color.xyz() = c.coords.swizzle(2,1,0); 371 c.color.xyz() = c.coords.swizzle(2,1,0); 435 c.color.xyz() = c.coords.swizzle(2,0,3); 499 c.color.xyz() = c.coords.swizzle(2,0,3); 526 c.color.xyz() = c.coords.swizzle(0,1,2); 558 c.color.xyz() = c.coords.swizzle( [all...] |
/external/deqp/modules/gles3/functional/ |
H A D | es3fShaderStructTests.cpp | 212 c.color.xyz() = c.coords.swizzle(0,1,2); 239 c.color.xyz() = c.coords.swizzle(0,1,2); 265 c.color.xyz() = c.coords.swizzle(3,2,1); 293 c.color.xyz() = c.coords.swizzle(1,2,0); 319 c.color.xyz() = c.coords.swizzle(2,1,0); 345 c.color.xyz() = c.coords.swizzle(2,1,0); 409 c.color.xyz() = c.coords.swizzle(2,0,3); 473 c.color.xyz() = c.coords.swizzle(2,0,3); 500 c.color.xyz() = c.coords.swizzle(0,1,2); 532 c.color.xyz() = c.coords.swizzle( [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/tests/graw/ |
H A D | tex-swizzle.c | 118 init_tex(const unsigned swizzle[4]) argument 140 sv_template.swizzle_r = swizzle[0]; 141 sv_template.swizzle_g = swizzle[1]; 142 sv_template.swizzle_b = swizzle[2]; 143 sv_template.swizzle_a = swizzle[3]; 160 init(const unsigned swizzle[4]) argument 169 init_tex(swizzle); 202 uint swizzle[4]; local 205 swizzle[0] = PIPE_SWIZZLE_RED; 206 swizzle[ [all...] |
/external/mesa3d/src/gallium/tests/graw/ |
H A D | tex-swizzle.c | 118 init_tex(const unsigned swizzle[4]) argument 140 sv_template.swizzle_r = swizzle[0]; 141 sv_template.swizzle_g = swizzle[1]; 142 sv_template.swizzle_b = swizzle[2]; 143 sv_template.swizzle_a = swizzle[3]; 160 init(const unsigned swizzle[4]) argument 169 init_tex(swizzle); 202 uint swizzle[4]; local 205 swizzle[0] = PIPE_SWIZZLE_RED; 206 swizzle[ [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/ |
H A D | r300_tgsi_to_rc.h | 36 unsigned swizzle; member in struct:swizzled_imms
|
/external/mesa3d/src/gallium/drivers/r300/ |
H A D | r300_tgsi_to_rc.h | 36 unsigned swizzle; member in struct:swizzled_imms
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i915/ |
H A D | i915_fragprog.c | 108 src = swizzle(src, X, Y, Z, ONE); 112 src = swizzle(src, W, ZERO, ZERO, ONE); 187 src = swizzle(src, 391 swizzle(tmp, ONE, ZERO, ONE, ONE), 0, 0); 444 swizzle(consts1, Z, ZERO, ZERO, ZERO), /* 1/(2pi) */ 445 swizzle(consts0, W, ZERO, ZERO, ZERO)); /* .75 */ 453 swizzle(consts0, X, ZERO, ZERO, ZERO), /* 2 */ 454 swizzle(consts0, Y, ZERO, ZERO, ZERO)); /* -1 */ 464 swizzle(tmp, ZERO, X, ZERO, ZERO), 465 negate(swizzle(tm [all...] |
/external/mesa3d/src/mesa/drivers/dri/i915/ |
H A D | i915_fragprog.c | 108 src = swizzle(src, X, Y, Z, ONE); 112 src = swizzle(src, W, ZERO, ZERO, ONE); 187 src = swizzle(src, 391 swizzle(tmp, ONE, ZERO, ONE, ONE), 0, 0); 444 swizzle(consts1, Z, ZERO, ZERO, ZERO), /* 1/(2pi) */ 445 swizzle(consts0, W, ZERO, ZERO, ZERO)); /* .75 */ 453 swizzle(consts0, X, ZERO, ZERO, ZERO), /* 2 */ 454 swizzle(consts0, Y, ZERO, ZERO, ZERO)); /* -1 */ 464 swizzle(tmp, ZERO, X, ZERO, ZERO), 465 negate(swizzle(tm [all...] |
/external/chromium_org/third_party/mesa/src/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/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/deqp/modules/gles2/scripts/ |
H A D | gen-swizzles.py | 145 def __init__(self, name, precision, dataType, swizzle, inputs, outputs): 149 self.swizzle = swizzle 152 self.op = "out0 = in0.%s;" % swizzle 234 swizzle = "".join(map(lambda x: swizzleComponents[x], swizzleIndices)) variable 235 #print "%s %s .%s" % (precision, dataType, swizzle) 236 caseName = "%s_%s_%s" % (precision, dataType, swizzle) 238 outputs = map(lambda x: x.swizzle(swizzleIndices), inputs) 240 vectorSwizzleCases.append(SwizzleCase(caseName, precision, dataType, swizzle, [("%s in0" % dataType, inputs)], [("%s out0" % outType, outputs)])) 247 # swizzle [all...] |
/external/deqp/modules/gles3/scripts/ |
H A D | gen-swizzles.py | 149 def __init__(self, name, precision, dataType, swizzle, inputs, outputs): 153 self.swizzle = swizzle 156 self.op = "out0 = in0.%s;" % swizzle 238 swizzle = "".join(map(lambda x: swizzleComponents[x], swizzleIndices)) variable 239 #print "%s %s .%s" % (precision, dataType, swizzle) 240 caseName = "%s_%s_%s" % (precision, dataType, swizzle) 242 outputs = map(lambda x: x.swizzle(swizzleIndices), inputs) 244 vectorSwizzleCases.append(SwizzleCase(caseName, precision, dataType, swizzle, [("%s in0" % dataType, inputs)], [("%s out0" % outType, outputs)])) 251 # swizzle [all...] |
/external/chromium_org/third_party/mesa/src/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...] |