Home
last modified time | relevance | path

Searched refs:Semantic (Results 1 – 25 of 64) sorted by relevance

123

/external/swiftshader/src/Shader/
DVertexShader.cpp35 input[i] = Semantic(); in VertexShader()
72 input[i] = Semantic(); in VertexShader()
160 void VertexShader::setInput(int inputIdx, const sw::Shader::Semantic& semantic, AttribType aType) in setInput()
166 void VertexShader::setOutput(int outputIdx, int nbComponents, const sw::Shader::Semantic& semantic) in setOutput()
176 setOutput(posReg, 4, sw::Shader::Semantic(sw::Shader::USAGE_POSITION, 0)); in setPositionRegister()
182 setOutput(ptSizeReg, 4, sw::Shader::Semantic(sw::Shader::USAGE_PSIZE, 0)); in setPointSizeRegister()
186 const sw::Shader::Semantic& VertexShader::getInput(int inputIdx) const in getInput()
196 const sw::Shader::Semantic& VertexShader::getOutput(int outputIdx, int component) const in getOutput()
222 input[index] = Semantic(instruction[i]->usage, instruction[i]->usageIndex); in analyzeInput()
231 output[Pos][0] = Semantic(Shader::USAGE_POSITION, 0); in analyzeOutput()
[all …]
DVertexShader.hpp43 void setInput(int inputIdx, const Semantic& semantic, AttribType attribType = ATTRIBTYPE_FLOAT);
44 void setOutput(int outputIdx, int nbComponents, const Semantic& semantic);
50 const Semantic& getInput(int inputIdx) const;
51 const Semantic& getOutput(int outputIdx, int component) const;
64 Semantic input[MAX_VERTEX_INPUTS];
65 Semantic output[MAX_VERTEX_OUTPUTS][4];
DPixelShader.cpp141 void PixelShader::setInput(int inputIdx, int nbComponents, const sw::Shader::Semantic& semantic) in setInput()
149 const sw::Shader::Semantic& PixelShader::getInput(int inputIdx, int component) const in getInput()
204 input[0][0] = Semantic(Shader::USAGE_COLOR, 0); in analyzeInterpolants()
205 input[0][1] = Semantic(Shader::USAGE_COLOR, 0); in analyzeInterpolants()
206 input[0][2] = Semantic(Shader::USAGE_COLOR, 0); in analyzeInterpolants()
207 input[0][3] = Semantic(Shader::USAGE_COLOR, 0); in analyzeInterpolants()
209 input[1][0] = Semantic(Shader::USAGE_COLOR, 1); in analyzeInterpolants()
210 input[1][1] = Semantic(Shader::USAGE_COLOR, 1); in analyzeInterpolants()
211 input[1][2] = Semantic(Shader::USAGE_COLOR, 1); in analyzeInterpolants()
212 input[1][3] = Semantic(Shader::USAGE_COLOR, 1); in analyzeInterpolants()
[all …]
DPixelShader.hpp39 void setInput(int inputIdx, int nbComponents, const Semantic& semantic);
40 const Semantic& getInput(int inputIdx, int component) const;
53 Semantic input[MAX_FRAGMENT_INPUTS][4];
DShader.hpp586 struct Semantic struct in sw::Shader
588Semantic(unsigned char usage = 0xFF, unsigned char index = 0xFF, bool flat = false) : usage(usage)… in Semantic() argument
592 bool operator==(const Semantic &semantic) const in operator ==() argument
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_two_side.c77 if (decl->Semantic.Name == TGSI_SEMANTIC_COLOR) { in xform_decl()
79 assert(decl->Semantic.Index < 2); in xform_decl()
80 ts->front_color_input[decl->Semantic.Index] = decl->Range.First; in xform_decl()
81 ts->front_color_interp[decl->Semantic.Index] = decl->Interp.Interpolate; in xform_decl()
83 else if (decl->Semantic.Name == TGSI_SEMANTIC_FACE) { in xform_decl()
111 decl.Declaration.Semantic = 1; in emit_prolog()
112 decl.Semantic.Name = TGSI_SEMANTIC_BCOLOR; in emit_prolog()
113 decl.Semantic.Index = i; in emit_prolog()
136 decl.Declaration.Semantic = 1; in emit_prolog()
137 decl.Semantic.Name = TGSI_SEMANTIC_FACE; in emit_prolog()
[all …]
Dtgsi_dump.c299 boolean patch = decl->Semantic.Name == TGSI_SEMANTIC_PATCH || in iter_declaration()
300 decl->Semantic.Name == TGSI_SEMANTIC_TESSINNER || in iter_declaration()
301 decl->Semantic.Name == TGSI_SEMANTIC_TESSOUTER || in iter_declaration()
302 decl->Semantic.Name == TGSI_SEMANTIC_PRIMID; in iter_declaration()
353 if (decl->Declaration.Semantic) { in iter_declaration()
355 ENM( decl->Semantic.Name, tgsi_semantic_names ); in iter_declaration()
356 if (decl->Semantic.Index != 0 || in iter_declaration()
357 decl->Semantic.Name == TGSI_SEMANTIC_TEXCOORD || in iter_declaration()
358 decl->Semantic.Name == TGSI_SEMANTIC_GENERIC) { in iter_declaration()
360 UID( decl->Semantic.Index ); in iter_declaration()
[all …]
Dtgsi_point_sprite.c119 if (decl->Semantic.Name == TGSI_SEMANTIC_PSIZE) { in psprite_decl()
122 else if (decl->Semantic.Name == TGSI_SEMANTIC_POSITION) { in psprite_decl()
127 if (decl->Semantic.Name == TGSI_SEMANTIC_PSIZE) { in psprite_decl()
130 else if (decl->Semantic.Name == TGSI_SEMANTIC_POSITION) { in psprite_decl()
133 else if (decl->Semantic.Name == TGSI_SEMANTIC_GENERIC && in psprite_decl()
134 decl->Semantic.Index < 32) { in psprite_decl()
135 ts->point_coord_decl |= 1 << decl->Semantic.Index; in psprite_decl()
136 ts->max_generic = MAX2(ts->max_generic, (int)decl->Semantic.Index); in psprite_decl()
Dtgsi_scan.c455 unsigned semName = fulldecl->Semantic.Name; in scan_declaration()
456 unsigned semIndex = fulldecl->Semantic.Index + in scan_declaration()
552 info->output_streams[reg] |= (ubyte)fulldecl->Semantic.StreamX; in scan_declaration()
553 info->num_stream_output_components[fulldecl->Semantic.StreamX]++; in scan_declaration()
556 info->output_streams[reg] |= (ubyte)fulldecl->Semantic.StreamY << 2; in scan_declaration()
557 info->num_stream_output_components[fulldecl->Semantic.StreamY]++; in scan_declaration()
560 info->output_streams[reg] |= (ubyte)fulldecl->Semantic.StreamZ << 4; in scan_declaration()
561 info->num_stream_output_components[fulldecl->Semantic.StreamZ]++; in scan_declaration()
564 info->output_streams[reg] |= (ubyte)fulldecl->Semantic.StreamW << 6; in scan_declaration()
565 info->num_stream_output_components[fulldecl->Semantic.StreamW]++; in scan_declaration()
Dtgsi_emulate.c77 decl.Declaration.Semantic = true; in passthrough_edgeflag()
79 decl.Semantic.Name = TGSI_SEMANTIC_EDGEFLAG; in passthrough_edgeflag()
80 decl.Semantic.Index = 0; in passthrough_edgeflag()
Dtgsi_build.c109 declaration.Semantic = 0; in tgsi_default_declaration()
144 declaration.Semantic = semantic; in tgsi_build_declaration()
384 full_declaration.Semantic = tgsi_default_declaration_semantic(); in tgsi_default_full_declaration()
414 full_decl->Declaration.Semantic, in tgsi_build_full_declaration()
463 if( full_decl->Declaration.Semantic ) { in tgsi_build_full_declaration()
472 full_decl->Semantic.Name, in tgsi_build_full_declaration()
473 full_decl->Semantic.Index, in tgsi_build_full_declaration()
474 full_decl->Semantic.StreamX, in tgsi_build_full_declaration()
475 full_decl->Semantic.StreamY, in tgsi_build_full_declaration()
476 full_decl->Semantic.StreamZ, in tgsi_build_full_declaration()
[all …]
Dtgsi_transform.h141 decl.Declaration.Semantic = 1; in tgsi_transform_input_decl()
142 decl.Semantic.Name = sem_name; in tgsi_transform_input_decl()
143 decl.Semantic.Index = sem_index; in tgsi_transform_input_decl()
162 decl.Declaration.Semantic = 1; in tgsi_transform_output_decl()
163 decl.Semantic.Name = sem_name; in tgsi_transform_output_decl()
164 decl.Semantic.Index = sem_index; in tgsi_transform_output_decl()
Dtgsi_aa_point.c68 decl->Semantic.Name == TGSI_SEMANTIC_COLOR && in aa_decl()
69 decl->Semantic.Index == 0) { in aa_decl()
Dtgsi_parse.c120 if (decl->Declaration.Semantic) { in tgsi_parse_token()
121 next_token( ctx, &decl->Semantic ); in tgsi_parse_token()
Dtgsi_sanity.c413 uint patch = decl->Semantic.Name == TGSI_SEMANTIC_PATCH || in iter_declaration()
414 decl->Semantic.Name == TGSI_SEMANTIC_TESSOUTER || in iter_declaration()
415 decl->Semantic.Name == TGSI_SEMANTIC_TESSINNER; in iter_declaration()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_vs_draw.c98 decl.Declaration.Semantic = TRUE; in emit_output()
99 decl.Semantic.Name = name; in emit_output()
100 decl.Semantic.Index = index; in emit_output()
152 switch (decl->Semantic.Name) { in transform_decl()
158 assert(decl->Semantic.Index < 2); in transform_decl()
163 if (decl->Semantic.Index == 1 && !vsctx->color_used[0]) { in transform_decl()
171 assert(decl->Semantic.Index < 2); in transform_decl()
186 if (decl->Semantic.Index == 1 && !vsctx->bcolor_used[0]) { in transform_decl()
194 vsctx->last_generic = MAX2(vsctx->last_generic, decl->Semantic.Index); in transform_decl()
215 decl->Semantic.Name == TGSI_SEMANTIC_BCOLOR && in transform_decl()
/external/clang/test/Misc/
Dserialized-diags.m20 …-diags.m:8:4: error: use of undeclared identifier '_self'; did you mean 'self'? [] [Semantic Issue]
24 // CHECK: +-(null):0:0: note: 'self' is an implicit parameter [] [Semantic Issue]
26 …: warning: class 'Foo' defined without specifying a base class [-Wobjc-root-class] [Semantic Issue]
28 …{{.*[/\\]}}serialized-diags.m:1:15: note: add a super class to fix this problem [] [Semantic Issue]
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnvfx_fragprog.c890 switch (fdec->Semantic.Name) { in nvfx_fragprog_parse_decl_input()
895 hw = NVFX_FP_OP_INPUT_SRC_COL0 + fdec->Semantic.Index; in nvfx_fragprog_parse_decl_input()
904 assert(fdec->Semantic.Index < 8); in nvfx_fragprog_parse_decl_input()
905 fpc->fp->texcoord[fdec->Semantic.Index] = fdec->Semantic.Index; in nvfx_fragprog_parse_decl_input()
906 fpc->fp->texcoords |= (1 << fdec->Semantic.Index); in nvfx_fragprog_parse_decl_input()
907 fpc->fp->vp_or |= (0x00004000 << fdec->Semantic.Index); in nvfx_fragprog_parse_decl_input()
908 hw = NVFX_FP_OP_INPUT_SRC_TC(fdec->Semantic.Index); in nvfx_fragprog_parse_decl_input()
931 switch (fdec->Semantic.Name) { in nvfx_fragprog_assign_generic()
942 if (fdec->Semantic.Name == TGSI_SEMANTIC_PCOORD) { in nvfx_fragprog_assign_generic()
946 fpc->fp->texcoord[hw] = fdec->Semantic.Index + 8; in nvfx_fragprog_assign_generic()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_pstipple.c212 if (decl->Semantic.Name == TGSI_SEMANTIC_POSITION) in pstip_transform_decl()
287 decl.Declaration.Semantic = 1; in pstip_transform_prolog()
288 decl.Semantic.Name = TGSI_SEMANTIC_POSITION; in pstip_transform_prolog()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe_aapoint.c138 decl->Semantic.Name == TGSI_SEMANTIC_COLOR && in aa_transform_decl()
139 decl->Semantic.Index == 0) { in aa_transform_decl()
145 if (decl->Semantic.Name == TGSI_SEMANTIC_GENERIC && in aa_transform_decl()
146 (int) decl->Semantic.Index > aactx->maxGeneric) { in aa_transform_decl()
147 aactx->maxGeneric = decl->Semantic.Index; in aa_transform_decl()
Ddraw_pipe_aaline.c160 decl->Semantic.Name == TGSI_SEMANTIC_COLOR && in aa_transform_decl()
161 decl->Semantic.Index == 0) { in aa_transform_decl()
177 if (decl->Semantic.Name == TGSI_SEMANTIC_GENERIC && in aa_transform_decl()
178 (int) decl->Semantic.Index > aactx->maxGeneric) { in aa_transform_decl()
179 aactx->maxGeneric = decl->Semantic.Index; in aa_transform_decl()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_tgsi_decl_sm30.c589 ok = vs30_input( emit, decl->Semantic, idx ); in svga_translate_decl_sm30()
591 ok = ps30_input( emit, decl->Semantic, idx ); in svga_translate_decl_sm30()
596 ok = vs30_output( emit, decl->Semantic, idx ); in svga_translate_decl_sm30()
598 ok = ps30_output( emit, decl->Semantic, idx ); in svga_translate_decl_sm30()
/external/mesa3d/src/gallium/drivers/ilo/
Dilo_shader.c422 if (decl->Declaration.Semantic && in ilo_shader_info_parse_decl()
423 decl->Semantic.Name == TGSI_SEMANTIC_POSITION) in ilo_shader_info_parse_decl()
427 if (decl->Declaration.Semantic && in ilo_shader_info_parse_decl()
428 decl->Semantic.Name == TGSI_SEMANTIC_EDGEFLAG) in ilo_shader_info_parse_decl()
440 if (decl->Declaration.Semantic && in ilo_shader_info_parse_decl()
441 decl->Semantic.Name == TGSI_SEMANTIC_INSTANCEID) in ilo_shader_info_parse_decl()
443 if (decl->Declaration.Semantic && in ilo_shader_info_parse_decl()
444 decl->Semantic.Name == TGSI_SEMANTIC_VERTEXID) in ilo_shader_info_parse_decl()
/external/clang/lib/Analysis/
DAnalysisDeclContext.cpp541 Expr *Semantic = *it; in VisitPseudoObjectExpr() local
542 if (OpaqueValueExpr *OVE = dyn_cast<OpaqueValueExpr>(Semantic)) in VisitPseudoObjectExpr()
543 Semantic = OVE->getSourceExpr(); in VisitPseudoObjectExpr()
544 Visit(Semantic); in VisitPseudoObjectExpr()
/external/swiftshader/src/Renderer/
DSetupProcessor.cpp132 …const Shader::Semantic& semantic = context->pixelShader->getInput(interpolant, component - project… in update()
166 const Shader::Semantic& semantic = context->pixelShader->getInput(interpolant, component); in update()

123