Home
last modified time | relevance | path

Searched refs:texcoord (Results 1 – 25 of 43) sorted by relevance

12

/external/mesa3d/src/compiler/nir/
Dnir_lower_bitmap.c58 nir_variable *texcoord = NULL; in get_texcoord() local
63 texcoord = var; in get_texcoord()
69 if (texcoord == NULL) { in get_texcoord()
70 texcoord = nir_variable_create(shader, in get_texcoord()
74 texcoord->data.location = VARYING_SLOT_TEX0; in get_texcoord()
77 return texcoord; in get_texcoord()
84 nir_ssa_def *texcoord; in lower_bitmap() local
89 texcoord = nir_load_var(b, get_texcoord(shader)); in lower_bitmap()
100 nir_src_for_ssa(nir_channels(b, texcoord, in lower_bitmap()
Dnir_lower_drawpixels.c38 nir_variable *texcoord, *scale, *bias; member
44 if (state->texcoord == NULL) { in get_texcoord()
45 nir_variable *texcoord = NULL; in get_texcoord() local
50 texcoord = var; in get_texcoord()
56 if (texcoord == NULL) { in get_texcoord()
57 texcoord = nir_variable_create(state->shader, in get_texcoord()
61 texcoord->data.location = VARYING_SLOT_TEX0; in get_texcoord()
64 state->texcoord = texcoord; in get_texcoord()
66 return nir_load_var(&state->b, state->texcoord); in get_texcoord()
117 nir_ssa_def *texcoord; in lower_color() local
[all …]
/external/mesa3d/src/mesa/swrast/
Ds_texfilter.c508 const GLfloat texcoord[4], in nearest_texcoord()
518 *i = clamp_rect_coord_nearest(samp->WrapS, texcoord[0], width); in nearest_texcoord()
519 *j = clamp_rect_coord_nearest(samp->WrapT, texcoord[1], height); in nearest_texcoord()
523 *i = nearest_texel_location(samp->WrapS, img, width, texcoord[0]); in nearest_texcoord()
528 *i = nearest_texel_location(samp->WrapS, img, width, texcoord[0]); in nearest_texcoord()
529 *j = nearest_texel_location(samp->WrapT, img, height, texcoord[1]); in nearest_texcoord()
533 *i = nearest_texel_location(samp->WrapS, img, width, texcoord[0]); in nearest_texcoord()
534 *j = tex_array_slice(texcoord[1], height); in nearest_texcoord()
538 *i = nearest_texel_location(samp->WrapS, img, width, texcoord[0]); in nearest_texcoord()
539 *j = nearest_texel_location(samp->WrapT, img, height, texcoord[1]); in nearest_texcoord()
[all …]
Ds_fragprog.c80 fetch_texel_lod( struct gl_context *ctx, const GLfloat texcoord[4], GLfloat lambda, in fetch_texel_lod()
93 1, (const GLfloat (*)[4]) texcoord, in fetch_texel_lod()
111 fetch_texel_deriv( struct gl_context *ctx, const GLfloat texcoord[4], in fetch_texel_deriv()
133 texcoord[0], texcoord[1], texcoord[3], in fetch_texel_deriv()
134 1.0F / texcoord[3]); in fetch_texel_deriv()
141 1, (const GLfloat (*)[4]) texcoord, in fetch_texel_deriv()
Ds_span.c486 GLfloat (*texcoord)[4] = span->array->attribs[attr]; in interpolate_texcoords() local
534 texcoord[i][0] = s * invW; in interpolate_texcoords()
535 texcoord[i][1] = t * invW; in interpolate_texcoords()
536 texcoord[i][2] = r * invW; in interpolate_texcoords()
537 texcoord[i][3] = q * invW; in interpolate_texcoords()
551 texcoord[i][0] = s * invQ; in interpolate_texcoords()
552 texcoord[i][1] = t * invQ; in interpolate_texcoords()
553 texcoord[i][2] = r * invQ; in interpolate_texcoords()
554 texcoord[i][3] = q; in interpolate_texcoords()
575 texcoord[i][0] = s * invW; in interpolate_texcoords()
[all …]
/external/mesa3d/src/mesa/tnl/
Dt_vb_texgen.c74 GLvector4f texcoord[MAX_TEXTURE_COORD_UNITS]; member
255 GLvector4f *out = &store->texcoord[unit]; in texgen_reflection_map_nv()
277 GLvector4f *out = &store->texcoord[unit]; in texgen_normal_map_nv()
279 GLfloat (*texcoord)[4] = (GLfloat (*)[4])out->start; in texgen_normal_map_nv() local
285 texcoord[i][0] = norm[0]; in texgen_normal_map_nv()
286 texcoord[i][1] = norm[1]; in texgen_normal_map_nv()
287 texcoord[i][2] = norm[2]; in texgen_normal_map_nv()
305 GLvector4f *out = &store->texcoord[unit]; in texgen_sphere_map()
306 GLfloat (*texcoord)[4] = (GLfloat (*)[4]) out->start; in texgen_sphere_map() local
320 texcoord[i][0] = f[i][0] * m[i] + 0.5F; in texgen_sphere_map()
[all …]
Dt_vb_texmat.c48 GLvector4f texcoord[MAX_TEXTURE_COORD_UNITS]; member
70 (void) TransformRaw( &store->texcoord[i], in run_texmat_stage()
74 VB->AttribPtr[VERT_ATTRIB_TEX0+i] = &store->texcoord[i]; in run_texmat_stage()
97 _mesa_vector4f_alloc( &store->texcoord[i], 0, VB->Size, 32 ); in alloc_texmat_data()
110 if (store->texcoord[i].data) in free_texmat_data()
111 _mesa_vector4f_free( &store->texcoord[i] ); in free_texmat_data()
/external/mesa3d/src/mesa/program/
Dprog_execute.c292 const GLfloat texcoord[4], GLfloat lodBias, in fetch_texel()
304 machine->FetchTexelDeriv(ctx, texcoord, in fetch_texel()
310 machine->FetchTexelLod(ctx, texcoord, lodBias, unit, color); in fetch_texel()
1065 GLfloat texcoord[4], color[4]; in _mesa_execute_program() local
1066 fetch_vector4(&inst->SrcReg[0], machine, texcoord); in _mesa_execute_program()
1074 texcoord[3] = 1.0f; in _mesa_execute_program()
1076 fetch_texel(ctx, machine, inst, texcoord, 0.0, color); in _mesa_execute_program()
1082 texcoord[0], texcoord[1], texcoord[2], texcoord[3]); in _mesa_execute_program()
1090 GLfloat texcoord[4], color[4], lodBias; in _mesa_execute_program() local
1092 fetch_vector4(&inst->SrcReg[0], machine, texcoord); in _mesa_execute_program()
[all …]
Dprog_execute.h32 typedef void (*FetchTexelLodFunc)(struct gl_context *ctx, const GLfloat texcoord[4],
35 typedef void (*FetchTexelDerivFunc)(struct gl_context *ctx, const GLfloat texcoord[4],
/external/skia/src/gpu/ccpr/
DGrCCPathProcessor.cpp159 GrGLSLVarying texcoord(kFloat3_GrSLType); in onEmitCode() local
161 varyingHandler->addVarying("texcoord", &texcoord); in onEmitCode()
212 v->codeAppendf("%s.xy = atlascoord * %s;", texcoord.vsOut(), atlasAdjust); in onEmitCode()
216 texcoord.vsOut(), atlasAdjust, atlasAdjust); in onEmitCode()
220 v->codeAppendf("%s.z = sign(devbounds.z - devbounds.x) * .5;", texcoord.vsOut()); in onEmitCode()
230 f->appendTextureLookup(args.fTexSamplers[0], SkStringPrintf("%s.xy", texcoord.fsIn()).c_str(), in onEmitCode()
236 f->codeAppendf("coverage = min(abs(coverage) * half(%s.z), .5);", texcoord.fsIn()); in onEmitCode()
/external/skqp/src/gpu/ccpr/
DGrCCPathProcessor.cpp157 GrGLSLVarying texcoord(kFloat3_GrSLType); in onEmitCode() local
159 varyingHandler->addVarying("texcoord", &texcoord); in onEmitCode()
209 v->codeAppendf("%s.xy = atlascoord * %s;", texcoord.vsOut(), atlasAdjust); in onEmitCode()
213 texcoord.vsOut(), atlasAdjust, atlasAdjust); in onEmitCode()
217 v->codeAppendf("%s.z = sign(devbounds.z - devbounds.x) * .5;", texcoord.vsOut()); in onEmitCode()
227 f->appendTextureLookup(args.fTexSamplers[0], SkStringPrintf("%s.xy", texcoord.fsIn()).c_str(), in onEmitCode()
233 f->codeAppendf("coverage = min(abs(coverage) * %s.z, .5);", texcoord.fsIn()); in onEmitCode()
/external/deqp-deps/SPIRV-Tools/test/opt/
Dworkaround1209_test.cpp43 OpName %texcoord "texcoord" in TEST_F()
135 OpName %3 "texcoord" in TEST_F()
235 OpName %3 "texcoord" in TEST_F()
349 OpName %texcoord "texcoord" in TEST_F()
/external/swiftshader/third_party/SPIRV-Tools/test/opt/
Dworkaround1209_test.cpp43 OpName %texcoord "texcoord" in TEST_F()
135 OpName %3 "texcoord" in TEST_F()
235 OpName %3 "texcoord" in TEST_F()
349 OpName %texcoord "texcoord" in TEST_F()
/external/mesa3d/src/mesa/main/
Drastpos.c267 const GLfloat normal[3], GLuint unit, GLfloat texcoord[4]) in compute_texgen()
288 texcoord[0] = DOT4(vObj, texUnit->GenS.ObjectPlane); in compute_texgen()
291 texcoord[0] = DOT4(vEye, texUnit->GenS.EyePlane); in compute_texgen()
294 texcoord[0] = rx * mInv + 0.5F; in compute_texgen()
297 texcoord[0] = rx; in compute_texgen()
300 texcoord[0] = normal[0]; in compute_texgen()
311 texcoord[1] = DOT4(vObj, texUnit->GenT.ObjectPlane); in compute_texgen()
314 texcoord[1] = DOT4(vEye, texUnit->GenT.EyePlane); in compute_texgen()
317 texcoord[1] = ry * mInv + 0.5F; in compute_texgen()
320 texcoord[1] = ry; in compute_texgen()
[all …]
Dff_fragment_shader.cpp727 ir_rvalue *texcoord; in load_texture() local
730 texcoord = get_current_attrib(p, VERT_ATTRIB_TEX0 + unit); in load_texture()
732 texcoord = new(p->mem_ctx) ir_dereference_variable(p->texcoord_tex[unit]); in load_texture()
736 texcoord = new(p->mem_ctx) ir_dereference_variable(tc_array); in load_texture()
738 texcoord = new(p->mem_ctx) ir_dereference_array(texcoord, index); in load_texture()
830 tex->coordinate = new(p->mem_ctx) ir_swizzle(texcoord, 0, 1, 2, 3, coords); in load_texture()
833 texcoord = texcoord->clone(p->mem_ctx, NULL); in load_texture()
834 tex->shadow_comparator = new(p->mem_ctx) ir_swizzle(texcoord, in load_texture()
840 texcoord = texcoord->clone(p->mem_ctx, NULL); in load_texture()
841 tex->projector = swizzle_w(texcoord); in load_texture()
Dfeedback.c116 const GLfloat texcoord[4]) in _mesa_feedback_vertex()
133 _mesa_feedback_token( ctx, texcoord[0] ); in _mesa_feedback_vertex()
134 _mesa_feedback_token( ctx, texcoord[1] ); in _mesa_feedback_vertex()
135 _mesa_feedback_token( ctx, texcoord[2] ); in _mesa_feedback_vertex()
136 _mesa_feedback_token( ctx, texcoord[3] ); in _mesa_feedback_vertex()
Deval.c917 static GLfloat texcoord[4] = { 0.0, 0.0, 0.0, 1.0 }; in _mesa_init_eval() local
924 init_1d_map( &ctx->EvalMap.Map1Texture1, 1, texcoord ); in _mesa_init_eval()
925 init_1d_map( &ctx->EvalMap.Map1Texture2, 2, texcoord ); in _mesa_init_eval()
926 init_1d_map( &ctx->EvalMap.Map1Texture3, 3, texcoord ); in _mesa_init_eval()
927 init_1d_map( &ctx->EvalMap.Map1Texture4, 4, texcoord ); in _mesa_init_eval()
934 init_2d_map( &ctx->EvalMap.Map2Texture1, 1, texcoord ); in _mesa_init_eval()
935 init_2d_map( &ctx->EvalMap.Map2Texture2, 2, texcoord ); in _mesa_init_eval()
936 init_2d_map( &ctx->EvalMap.Map2Texture3, 3, texcoord ); in _mesa_init_eval()
937 init_2d_map( &ctx->EvalMap.Map2Texture4, 4, texcoord ); in _mesa_init_eval()
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_vertprog.c66 if (memcmp(vp->texcoord, fp->texcoord, sizeof(vp->texcoord))) { in nv30_vertprog_validate()
69 memcpy(vp->texcoord, fp->texcoord, sizeof(vp->texcoord)); in nv30_vertprog_validate()
Dnv30_state.h87 uint16_t texcoord[10]; member
119 uint16_t texcoord[10]; member
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_feedback.c86 const GLfloat *color, *texcoord; in feedback_vertex() local
110 texcoord = v->data[slot]; in feedback_vertex()
112 texcoord = ctx->Current.Attrib[VERT_ATTRIB_TEX0]; in feedback_vertex()
114 _mesa_feedback_vertex(ctx, win, color, texcoord); in feedback_vertex()
/external/mesa3d/src/gallium/auxiliary/util/
Du_blitter.c792 out->texcoord.x1 = x1 / (float)u_minify(src_width0, level); in get_texcoords()
793 out->texcoord.y1 = y1 / (float)u_minify(src_height0, level); in get_texcoords()
794 out->texcoord.x2 = x2 / (float)u_minify(src_width0, level); in get_texcoords()
795 out->texcoord.y2 = y2 / (float)u_minify(src_height0, level); in get_texcoords()
797 out->texcoord.x1 = x1; in get_texcoords()
798 out->texcoord.y1 = y1; in get_texcoords()
799 out->texcoord.x2 = x2; in get_texcoords()
800 out->texcoord.y2 = y2; in get_texcoords()
803 out->texcoord.z = 0; in get_texcoords()
804 out->texcoord.w = 0; in get_texcoords()
[all …]
/external/deqp-deps/glslang/Test/
Dspv.GeometryShaderPassthrough.geom11 vec2 texcoord;
/external/webrtc/webrtc/api/objc/
DRTCOpenGLVideoRenderer.mm52 VERTEX_SHADER_IN " vec2 texcoord;\n"
56 " v_texcoord = texcoord;\n"
284 _texcoord = glGetAttribLocation(_program, "texcoord");
471 // Read texcoord attribute from |gVertices| with size of 2 and stride of 4
472 // beginning at the first texcoord in the array. The last argument indicates
/external/mesa3d/src/gallium/drivers/r600/
Dr600_pipe_common.c213 vb[6] = vb[14] = vb[22] = attrib->texcoord.z; in r600_draw_rectangle()
214 vb[7] = vb[15] = vb[23] = attrib->texcoord.w; in r600_draw_rectangle()
216 vb[4] = attrib->texcoord.x1; in r600_draw_rectangle()
217 vb[5] = attrib->texcoord.y1; in r600_draw_rectangle()
218 vb[12] = attrib->texcoord.x1; in r600_draw_rectangle()
219 vb[13] = attrib->texcoord.y2; in r600_draw_rectangle()
220 vb[20] = attrib->texcoord.x2; in r600_draw_rectangle()
221 vb[21] = attrib->texcoord.y1; in r600_draw_rectangle()
/external/webrtc/talk/app/webrtc/objc/
DRTCOpenGLVideoRenderer.mm73 VERTEX_SHADER_IN " vec2 texcoord;\n"
77 " v_texcoord = texcoord;\n"
303 _texcoord = glGetAttribLocation(_program, "texcoord");
489 // Read texcoord attribute from |gVertices| with size of 2 and stride of 4
490 // beginning at the first texcoord in the array. The last argument indicates

12