Searched defs:texel (Results 1 - 14 of 14) sorted by relevance

/external/mesa3d/src/mesa/main/
H A Dtexcompress_etc.c55 GLint i, GLint j, GLint k, GLfloat *texel)
67 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]);
68 texel[GCOMP] = UBYTE_TO_FLOAT(dst[1]);
69 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]);
70 texel[ACOMP] = 1.0f;
54 _mesa_fetch_texel_2d_f_etc1_rgb8(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
H A Dtexcompress_rgtc.c296 GLint i, GLint j, GLint k, GLfloat *texel)
303 texel[RCOMP] = UBYTE_TO_FLOAT(red);
304 texel[GCOMP] = 0.0;
305 texel[BCOMP] = 0.0;
306 texel[ACOMP] = 1.0;
311 GLint i, GLint j, GLint k, GLfloat *texel)
318 texel[RCOMP] = BYTE_TO_FLOAT_TEX(red);
319 texel[GCOMP] = 0.0;
320 texel[BCOMP] = 0.0;
321 texel[ACOM
295 _mesa_fetch_texel_red_rgtc1(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
310 _mesa_fetch_texel_signed_red_rgtc1(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
325 _mesa_fetch_texel_rg_rgtc2(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
343 _mesa_fetch_texel_signed_rg_rgtc2(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
361 _mesa_fetch_texel_l_latc1(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
376 _mesa_fetch_texel_signed_l_latc1(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
391 _mesa_fetch_texel_la_latc2(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
409 _mesa_fetch_texel_signed_la_latc2(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
[all...]
H A Dtexcompress_s3tc.c372 GLint i, GLint j, GLint k, GLubyte *texel)
378 texImage->Map + sliceOffset, i, j, texel);
387 GLint i, GLint j, GLint k, GLfloat *texel)
392 texel[RCOMP] = UBYTE_TO_FLOAT(rgba[RCOMP]);
393 texel[GCOMP] = UBYTE_TO_FLOAT(rgba[GCOMP]);
394 texel[BCOMP] = UBYTE_TO_FLOAT(rgba[BCOMP]);
395 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]);
401 GLint i, GLint j, GLint k, GLubyte *texel)
407 texImage->Map + sliceOffset, i, j, texel);
416 GLint i, GLint j, GLint k, GLfloat *texel)
371 fetch_texel_2d_rgb_dxt1(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLubyte *texel) argument
386 _mesa_fetch_texel_rgb_dxt1(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
400 fetch_texel_2d_rgba_dxt1(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLubyte *texel) argument
415 _mesa_fetch_texel_rgba_dxt1(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
429 fetch_texel_2d_rgba_dxt3(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLubyte *texel) argument
444 _mesa_fetch_texel_rgba_dxt3(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
458 fetch_texel_2d_rgba_dxt5(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLubyte *texel) argument
473 _mesa_fetch_texel_rgba_dxt5(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
487 _mesa_fetch_texel_srgb_dxt1(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
500 _mesa_fetch_texel_srgba_dxt1(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
513 _mesa_fetch_texel_srgba_dxt3(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
526 _mesa_fetch_texel_srgba_dxt5(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
[all...]
H A Dtexobj.c725 GLubyte texel[4]; local
732 texel[0] =
733 texel[1] =
734 texel[2] = 0x0;
735 texel[3] = 0xff;
813 GL_RGBA, GL_UNSIGNED_BYTE, texel,
H A Dtexcompress_fxt1.c161 GLint i, GLint j, GLint k, GLfloat *texel )
167 texel[RCOMP] = UBYTE_TO_FLOAT(rgba[RCOMP]);
168 texel[GCOMP] = UBYTE_TO_FLOAT(rgba[GCOMP]);
169 texel[BCOMP] = UBYTE_TO_FLOAT(rgba[BCOMP]);
170 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]);
176 GLint i, GLint j, GLint k, GLfloat *texel )
182 texel[RCOMP] = UBYTE_TO_FLOAT(rgba[RCOMP]);
183 texel[GCOMP] = UBYTE_TO_FLOAT(rgba[GCOMP]);
184 texel[BCOMP] = UBYTE_TO_FLOAT(rgba[BCOMP]);
185 texel[ACOM
761 GLint texel; local
781 GLint texel; local
868 GLint texel = n_vect + 1; /* transparent black */ local
964 GLint texel = n_vect + 1; /* transparent black */ local
998 GLint texel = n_vect + 1; /* transparent black */ local
1127 GLint texel; local
1160 GLint texel; local
[all...]
/external/mesa3d/src/gallium/auxiliary/draw/
H A Ddraw_llvm_sample.c167 * The 'texel' parameter returns four vectors corresponding to R, G, B, A.
179 LLVMValueRef *texel)
193 texel);
170 draw_llvm_sampler_soa_emit_fetch_texel(const struct lp_build_sampler_soa *base, struct gallivm_state *gallivm, struct lp_type type, unsigned unit, unsigned num_coords, const LLVMValueRef *coords, const struct lp_derivatives *derivs, LLVMValueRef lod_bias, LLVMValueRef explicit_lod, LLVMValueRef *texel) argument
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_tex_sample.c172 * The 'texel' parameter returns four vectors corresponding to R, G, B, A.
184 LLVMValueRef *texel)
191 lp_build_sample_nop(gallivm, type, num_coords, coords, texel);
203 texel);
175 lp_llvm_sampler_soa_emit_fetch_texel(const struct lp_build_sampler_soa *base, struct gallivm_state *gallivm, struct lp_type type, unsigned unit, unsigned num_coords, const LLVMValueRef *coords, const struct lp_derivatives *derivs, LLVMValueRef lod_bias, LLVMValueRef explicit_lod, LLVMValueRef *texel) argument
/external/mesa3d/src/mesa/swrast/
H A Ds_fragprog.c49 * Apply texture object's swizzle (X/Y/Z/W/0/1) to incoming 'texel'
53 swizzle_texel(const GLfloat texel[4], GLfloat colorOut[4], GLuint swizzle) argument
56 COPY_4V(colorOut, texel);
60 vector[SWIZZLE_X] = texel[0];
61 vector[SWIZZLE_Y] = texel[1];
62 vector[SWIZZLE_Z] = texel[2];
63 vector[SWIZZLE_W] = texel[3];
75 * Fetch a texel with given lod.
103 * Fetch a texel with the given partial derivatives to compute a level
H A Ds_texfetch_tmp.h31 * This template file is used by texfetch.c to generate texel fetch functions
36 * for the texel lookup in the gl_texture_image::Data.
73 /* Fetch depth texel from 1D, 2D or 3D 32-bit depth texture,
78 GLint i, GLint j, GLint k, GLfloat *texel )
81 texel[0] = src[0] * (1.0F / 0xffffffff);
87 /* Fetch depth texel from 1D, 2D or 3D 16-bit depth texture,
92 GLint i, GLint j, GLint k, GLfloat *texel )
95 texel[0] = src[0] * (1.0F / 65535.0F);
102 /* Fetch texel from 1D, 2D or 3D RGBA_FLOAT32 texture, returning 4 GLfloats.
105 GLint i, GLint j, GLint k, GLfloat *texel )
755 f_r8(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
771 f_r16(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
1291 signed_r16(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
1307 signed_a16(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
1323 signed_l16(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
1339 signed_i16(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
1355 signed_rg1616(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
1371 signed_al1616(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
1387 signed_rgb_16(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
1403 signed_rgba_16(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
1420 rgba_16(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
1558 z32f_x24s8(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel) argument
[all...]
H A Ds_texfilter.c149 * Used to compute texel locations for linear sampling.
155 * i0, i1 = returns two nearest texel indexes
285 * Used to compute texel location for nearest sampling.
804 * Put z into texel according to GL_DEPTH_MODE.
807 apply_depth_mode(GLenum depthMode, GLfloat z, GLfloat texel[4]) argument
811 ASSIGN_4V(texel, z, z, z, 1.0F);
814 ASSIGN_4V(texel, z, z, z, z);
817 ASSIGN_4V(texel, 0.0F, 0.0F, 0.0F, z);
820 ASSIGN_4V(texel, z, 0.0F, 0.0F, 1.0F);
895 /* fetch texel color
1438 GLubyte *texel = swImg->Map + 3 * pos; local
1483 const GLuint texel = *((GLuint *) swImg->Map + pos); local
[all...]
/external/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_sample.h276 LLVMValueRef *texel)
285 lp_build_swizzle_soa_inplace(&bld->texel_bld, texel, swizzles);
275 apply_sampler_swizzle(struct lp_build_sample_context *bld, LLVMValueRef *texel) argument
H A Dlp_bld_sample_soa.c65 * Generate code to fetch a texel from a texture at int coords (x, y, z).
67 * The result, texel, will be float vectors:
68 * texel[0] = red values
69 * texel[1] = green values
70 * texel[2] = blue values
71 * texel[3] = alpha values
168 * texel = border_color;
171 * texel = sample_texture(coord);
174 * the texel color results with the border color.
178 /* select texel colo
1166 lp_build_sample_compare(struct lp_build_sample_context *bld, LLVMValueRef p, LLVMValueRef texel[4]) argument
[all...]
H A Dlp_bld_tgsi_soa.c1142 LLVMValueRef *texel)
1158 texel[i] = bld->bld_base.base.undef;
1294 texel);
1139 emit_tex( struct lp_build_tgsi_soa_context *bld, const struct tgsi_full_instruction *inst, enum lp_build_tex_modifier modifier, LLVMValueRef *texel) argument
/external/mesa3d/src/gallium/auxiliary/vl/
H A Dvl_compositor.c134 struct ureg_dst texel; local
147 texel = ureg_DECL_temporary(shader);
151 * texel.xyz = tex(tc, sampler[i])
152 * fragment = csc * texel
155 ureg_TEX(shader, ureg_writemask(texel, TGSI_WRITEMASK_X << i), TGSI_TEXTURE_3D, tc, sampler[i]);
157 ureg_MOV(shader, ureg_writemask(texel, TGSI_WRITEMASK_W), ureg_imm1f(shader, 1.0f));
160 ureg_DP4(shader, ureg_writemask(fragment, TGSI_WRITEMASK_X << i), csc[i], ureg_src(texel));
164 ureg_release_temporary(shader, texel);
218 * texel[0..1].x = tex(t_tc[0..1][0])
219 * texel[
270 struct ureg_dst texel; local
316 struct ureg_dst texel, fragment; local
[all...]

Completed in 498 milliseconds