Home
last modified time | relevance | path

Searched refs:texcoord (Results 1 - 25 of 32) sorted by relevance

12

/third_party/mesa3d/src/compiler/nir/
H A Dnir_lower_bitmap.c58 nir_variable *texcoord = in get_texcoord() local
62 if (texcoord == NULL) { in get_texcoord()
63 texcoord = nir_variable_create(shader, in get_texcoord()
67 texcoord->data.location = VARYING_SLOT_TEX0; in get_texcoord()
70 return texcoord; in get_texcoord()
77 nir_ssa_def *texcoord; in lower_bitmap() local
81 texcoord = nir_load_var(b, get_texcoord(shader)); in lower_bitmap()
105 nir_src_for_ssa(nir_channels(b, texcoord, in lower_bitmap()
H A Dnir_lower_drawpixels.c38 nir_variable *texcoord, *texcoord_const, *scale, *bias, *tex, *pixelmap; 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()
119 nir_ssa_def *texcoord; lower_color() local
[all...]
/third_party/skia/third_party/externals/spirv-tools/test/opt/
H A Dworkaround1209_test.cpp38 OpEntryPoint Vertex %main "main" %texcoord %gl_VertexIndex %_ in TEST_F()
43 OpName %texcoord "texcoord" in TEST_F()
53 OpDecorate %texcoord Location 0 in TEST_F()
72 %texcoord = OpVariable %_ptr_Output_v4float Output in TEST_F()
108 OpStore %texcoord %38 in TEST_F()
135 OpName %3 "texcoord" in TEST_F()
235 OpName %3 "texcoord" in TEST_F()
344 OpEntryPoint Vertex %main "main" %texcoord %gl_VertexIndex %_ in TEST_F()
349 OpName %texcoord "texcoor in TEST_F()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/
H A Dworkaround1209_test.cpp38 OpEntryPoint Vertex %main "main" %texcoord %gl_VertexIndex %_ in TEST_F()
43 OpName %texcoord "texcoord" in TEST_F()
53 OpDecorate %texcoord Location 0 in TEST_F()
72 %texcoord = OpVariable %_ptr_Output_v4float Output in TEST_F()
108 OpStore %texcoord %38 in TEST_F()
135 OpName %3 "texcoord" in TEST_F()
235 OpName %3 "texcoord" in TEST_F()
344 OpEntryPoint Vertex %main "main" %texcoord %gl_VertexIndex %_ in TEST_F()
349 OpName %texcoord "texcoor in TEST_F()
[all...]
/third_party/spirv-tools/test/opt/
H A Dworkaround1209_test.cpp32 OpEntryPoint Vertex %main "main" %texcoord %gl_VertexIndex %_ in TEST_F()
37 OpName %texcoord "texcoord" in TEST_F()
47 OpDecorate %texcoord Location 0 in TEST_F()
66 %texcoord = OpVariable %_ptr_Output_v4float Output in TEST_F()
102 OpStore %texcoord %38 in TEST_F()
129 OpName %3 "texcoord" in TEST_F()
229 OpName %3 "texcoord" in TEST_F()
338 OpEntryPoint Vertex %main "main" %texcoord %gl_VertexIndex %_ in TEST_F()
343 OpName %texcoord "texcoor in TEST_F()
[all...]
/third_party/mesa3d/src/mesa/main/
H A Drastpos.c287 * \param texcoord incoming texcoord and resulting texcoord
291 const GLfloat normal[3], GLuint unit, GLfloat texcoord[4]) in compute_texgen()
313 texcoord[0] = DOT4(vObj, texUnit->ObjectPlane[GEN_S]); in compute_texgen()
316 texcoord[0] = DOT4(vEye, texUnit->EyePlane[GEN_S]); in compute_texgen()
319 texcoord[0] = rx * mInv + 0.5F; in compute_texgen()
322 texcoord[0] = rx; in compute_texgen()
325 texcoord[0] = normal[0]; in compute_texgen()
336 texcoord[ in compute_texgen()
290 compute_texgen(struct gl_context *ctx, const GLfloat vObj[4], const GLfloat vEye[4], const GLfloat normal[3], GLuint unit, GLfloat texcoord[4]) compute_texgen() argument
[all...]
H A Deval.c908 static GLfloat texcoord[4] = { 0.0, 0.0, 0.0, 1.0 }; in _mesa_init_eval() local
915 init_1d_map( &ctx->EvalMap.Map1Texture1, 1, texcoord ); in _mesa_init_eval()
916 init_1d_map( &ctx->EvalMap.Map1Texture2, 2, texcoord ); in _mesa_init_eval()
917 init_1d_map( &ctx->EvalMap.Map1Texture3, 3, texcoord ); in _mesa_init_eval()
918 init_1d_map( &ctx->EvalMap.Map1Texture4, 4, texcoord ); in _mesa_init_eval()
925 init_2d_map( &ctx->EvalMap.Map2Texture1, 1, texcoord ); in _mesa_init_eval()
926 init_2d_map( &ctx->EvalMap.Map2Texture2, 2, texcoord ); in _mesa_init_eval()
927 init_2d_map( &ctx->EvalMap.Map2Texture3, 3, texcoord ); in _mesa_init_eval()
928 init_2d_map( &ctx->EvalMap.Map2Texture4, 4, texcoord ); in _mesa_init_eval()
H A Dff_fragment_shader.cpp723 ir_rvalue *texcoord; in load_texture() local
726 texcoord = get_current_attrib(p, VERT_ATTRIB_TEX0 + unit); in load_texture()
730 texcoord = new(p->mem_ctx) ir_dereference_variable(tc_array); in load_texture()
732 texcoord = new(p->mem_ctx) ir_dereference_array(texcoord, index); in load_texture()
824 tex->coordinate = new(p->mem_ctx) ir_swizzle(texcoord, 0, 1, 2, 3, coords); in load_texture()
827 texcoord = texcoord->clone(p->mem_ctx, NULL); in load_texture()
828 tex->shadow_comparator = new(p->mem_ctx) ir_swizzle(texcoord, in load_texture()
834 texcoord in load_texture()
[all...]
H A Dfeedback.c119 const GLfloat texcoord[4]) in _mesa_feedback_vertex()
136 _mesa_feedback_token( ctx, texcoord[0] ); in _mesa_feedback_vertex()
137 _mesa_feedback_token( ctx, texcoord[1] ); in _mesa_feedback_vertex()
138 _mesa_feedback_token( ctx, texcoord[2] ); in _mesa_feedback_vertex()
139 _mesa_feedback_token( ctx, texcoord[3] ); in _mesa_feedback_vertex()
116 _mesa_feedback_vertex(struct gl_context *ctx, const GLfloat win[4], const GLfloat color[4], const GLfloat texcoord[4]) _mesa_feedback_vertex() argument
H A Dfeedback.h35 const GLfloat texcoord[4] );
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
H A Dnv30_vertprog.c67 if (memcmp(vp->texcoord, fp->texcoord, sizeof(vp->texcoord))) { in nv30_vertprog_validate()
70 memcpy(vp->texcoord, fp->texcoord, sizeof(vp->texcoord)); in nv30_vertprog_validate()
H A Dnv30_state.h87 uint16_t texcoord[10]; member
119 uint16_t texcoord[10]; member
/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_pbo.c479 nir_ssa_def *texcoord; in create_fs() local
481 texcoord = nir_f2i32(&b, nir_channels(&b, coord, TGSI_WRITEMASK_XY)); in create_fs()
485 texcoord = nir_swizzle(&b, texcoord, &sw, 1); in create_fs()
503 texcoord = nir_vec2(&b, nir_channel(&b, texcoord, 0), in create_fs()
506 texcoord = nir_vec3(&b, nir_channel(&b, texcoord, 0), in create_fs()
507 nir_channel(&b, texcoord, 1), in create_fs()
512 texcoord in create_fs()
[all...]
H A Dst_cb_feedback.c92 const GLfloat *color, *texcoord; in feedback_vertex() local
105 * color and texcoord attribs to use here. in feedback_vertex()
116 texcoord = v->data[slot]; in feedback_vertex()
118 texcoord = ctx->Current.Attrib[VERT_ATTRIB_TEX0]; in feedback_vertex()
120 _mesa_feedback_vertex(ctx, win, color, texcoord); in feedback_vertex()
H A Dst_cb_drawpixels.c109 sample_via_nir(nir_builder *b, nir_variable *texcoord, in sample_via_nir() argument
134 nir_src_for_ssa(nir_channels(b, nir_load_var(b, texcoord), in sample_via_nir()
155 nir_variable *texcoord = in make_drawpix_z_stencil_program_nir() local
157 "texcoord"); in make_drawpix_z_stencil_program_nir()
158 texcoord->data.location = VARYING_SLOT_TEX0; in make_drawpix_z_stencil_program_nir()
165 nir_ssa_def *depth = sample_via_nir(&b, texcoord, "depth", 0, in make_drawpix_z_stencil_program_nir()
187 nir_ssa_def *stencil = sample_via_nir(&b, texcoord, "stencil", 1, in make_drawpix_z_stencil_program_nir()
205 nir_variable *texcoord = in make_drawpix_zs_to_color_program_nir() local
207 "texcoord"); in make_drawpix_zs_to_color_program_nir()
208 texcoord in make_drawpix_zs_to_color_program_nir()
[all...]
/third_party/mesa3d/src/microsoft/compiler/
H A Ddxil_nir_lower_int_samplers.c297 nir_ssa_def *texcoord = NULL; in load_texel() local
302 texcoord = params->wrap[0].coords; in load_texel()
305 texcoord = nir_vec2(b, params->wrap[0].coords, params->wrap[1].coords); in load_texel()
308 texcoord = nir_vec3(b, params->wrap[0].coords, params->wrap[1].coords, params->wrap[2].coords); in load_texel()
314 texcoord = nir_f2i32(b, texcoord); in load_texel()
318 nir_tex_instr_add_src(load, nir_tex_src_coord, nir_src_for_ssa(texcoord)); in load_texel()
/third_party/mesa3d/src/gallium/auxiliary/util/
H A Du_blitter.c64 float vertices[4][2][4]; /**< {pos, color} or {pos, texcoord} */
899 out->texcoord.x1 = x1 / (float)u_minify(src_width0, level); in get_texcoords()
900 out->texcoord.y1 = y1 / (float)u_minify(src_height0, level); in get_texcoords()
901 out->texcoord.x2 = x2 / (float)u_minify(src_width0, level); in get_texcoords()
902 out->texcoord.y2 = y2 / (float)u_minify(src_height0, level); in get_texcoords()
904 out->texcoord.x1 = x1; in get_texcoords()
905 out->texcoord.y1 = y1; in get_texcoords()
906 out->texcoord.x2 = x2; in get_texcoords()
907 out->texcoord.y2 = y2; in get_texcoords()
910 out->texcoord in get_texcoords()
[all...]
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_state_fs_analysis.c221 * for the second var and the texcoord will be set up with: in get_nir_input_info()
244 * Examine the texcoord argument to a texture instruction to determine
245 * if the texcoord comes directly from a fragment shader input. If so
250 get_texcoord_provenance(const nir_tex_src *texcoord, in get_texcoord_provenance() argument
254 assert(texcoord->src_type == nir_tex_src_coord); in get_texcoord_provenance()
257 const nir_instr *parent = texcoord->src.ssa->parent_instr; in get_texcoord_provenance()
276 // Both texcoord components should come from the same input register. in get_texcoord_provenance()
/third_party/mesa3d/src/gallium/drivers/r600/
H A Dr600_pipe_common.c191 vb[6] = vb[14] = vb[22] = attrib->texcoord.z; in r600_draw_rectangle()
192 vb[7] = vb[15] = vb[23] = attrib->texcoord.w; in r600_draw_rectangle()
194 vb[4] = attrib->texcoord.x1; in r600_draw_rectangle()
195 vb[5] = attrib->texcoord.y1; in r600_draw_rectangle()
196 vb[12] = attrib->texcoord.x1; in r600_draw_rectangle()
197 vb[13] = attrib->texcoord.y2; in r600_draw_rectangle()
198 vb[20] = attrib->texcoord.x2; in r600_draw_rectangle()
199 vb[21] = attrib->texcoord.y1; in r600_draw_rectangle()
/third_party/mesa3d/src/gallium/auxiliary/nir/
H A Dnir_draw_helpers.c70 nir_ssa_def *texcoord; in nir_lower_pstipple_block() local
76 texcoord = nir_fmul(b, nir_channels(b, frag_coord, 0x3), in nir_lower_pstipple_block()
87 tex->src[0].src = nir_src_for_ssa(texcoord); in nir_lower_pstipple_block()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A DGLES1Renderer.cpp272 const TextureCoordF texcoord = gles1State.getCurrentTextureCoords(i); in prepareForDraw() local
273 context->vertexAttrib4f(kTextureCoordAttribIndexBase + i, texcoord.s, texcoord.t, in prepareForDraw()
274 texcoord.r, texcoord.q); in prepareForDraw()
876 ss << "texcoord" << i; in initializeRendererProgram()
/third_party/mesa3d/src/gallium/tests/graw/
H A Dfs-test.c54 float texcoord[4]; member
171 ve[2].src_offset = Offset(struct vertex, texcoord); in set_vertices()
H A Dgs-test.c58 float texcoord[4]; member
229 ve[2].src_offset = Offset(struct vertex, texcoord); in set_vertices()
/third_party/mesa3d/src/gallium/drivers/svga/
H A Dsvga_tgsi_insn.c1617 struct src_register texcoord; in emit_tex2() local
1643 texcoord = translate_src_register( emit, &insn->Src[0] ); in emit_tex2()
1655 SVGA3dShaderGetRegType(texcoord.base.value) == SVGA3DREG_TEMP) { in emit_tex2()
1658 /* MOV tmp, texcoord */ in emit_tex2()
1662 texcoord )) in emit_tex2()
1672 texcoord = src( tmp ); in emit_tex2()
1683 tmp, texcoord, wh )) in emit_tex2()
1686 texcoord = src( tmp ); in emit_tex2()
1689 return submit_op2( emit, inst, dst, texcoord, sampler ); in emit_tex2()
1702 struct src_register texcoord; in emit_tex4() local
[all...]
/third_party/mesa3d/src/gallium/drivers/r300/
H A Dr300_render.c1221 OUT_CS_32F(attrib->texcoord.x1); in r300_blitter_draw_rectangle()
1222 OUT_CS_32F(attrib->texcoord.y2); in r300_blitter_draw_rectangle()
1223 OUT_CS_32F(attrib->texcoord.x2); in r300_blitter_draw_rectangle()
1224 OUT_CS_32F(attrib->texcoord.y1); in r300_blitter_draw_rectangle()

Completed in 25 milliseconds

12