Home
last modified time | relevance | path

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

123

/external/mesa3d/src/mesa/main/
Dstate.c87 const struct gl_program *prevVP = ctx->VertexProgram._Current; in update_program()
180 _mesa_reference_program(ctx, &ctx->VertexProgram._Current, vsProg); in update_program()
184 _mesa_reference_program(ctx, &ctx->VertexProgram._Current, in update_program()
185 ctx->VertexProgram.Current); in update_program()
187 else if (ctx->VertexProgram._MaintainTnlProgram) { in update_program()
189 _mesa_reference_program(ctx, &ctx->VertexProgram._Current, in update_program()
191 _mesa_reference_program(ctx, &ctx->VertexProgram._TnlProgram, in update_program()
192 ctx->VertexProgram._Current); in update_program()
196 _mesa_reference_program(ctx, &ctx->VertexProgram._Current, NULL); in update_program()
210 ctx->VertexProgram._Current != prevVP || in update_program()
[all …]
Dstate.h69 if (ctx->VertexProgram._Current && in _mesa_need_secondary_color()
70 (ctx->VertexProgram._Current != ctx->VertexProgram._TnlProgram) && in _mesa_need_secondary_color()
71 (ctx->VertexProgram._Current->info.inputs_read & VERT_BIT_COLOR1)) in _mesa_need_secondary_color()
88 return ctx->VertexProgram.Enabled && in _mesa_arb_vertex_program_enabled()
89 ctx->VertexProgram.Current->arb.Instructions; in _mesa_arb_vertex_program_enabled()
98 return ctx->VertexProgram.TwoSideEnabled; in _mesa_vertex_program_two_side_enabled()
Darbprogram.c74 curProg = ctx->VertexProgram.Current; in _mesa_BindProgramARB()
130 _mesa_reference_program(ctx, &ctx->VertexProgram.Current, newProg); in _mesa_BindProgramARB()
137 assert(ctx->VertexProgram.Current); in _mesa_BindProgramARB()
170 if (ctx->VertexProgram.Current && in _mesa_DeleteProgramsARB()
171 ctx->VertexProgram.Current->Id == ids[i]) { in _mesa_DeleteProgramsARB()
268 prog = ctx->VertexProgram.Current; in get_local_param_pointer()
318 *param = ctx->VertexProgram.Parameters[index]; in get_env_param_pointer()
348 prog = ctx->VertexProgram.Current; in _mesa_ProgramStringARB()
513 dest = ctx->VertexProgram.Parameters[index]; in _mesa_ProgramEnvParameters4fvEXT()
666 prog = ctx->VertexProgram.Current; in _mesa_GetProgramivARB()
[all …]
Denable.c108 ctx->VertexProgram.PointSizeEnabled = state; in client_state()
924 if (ctx->VertexProgram.Enabled == state) in _mesa_set_enable()
927 ctx->VertexProgram.Enabled = state; in _mesa_set_enable()
936 if (ctx->VertexProgram.PointSizeEnabled == state) in _mesa_set_enable()
939 ctx->VertexProgram.PointSizeEnabled = state; in _mesa_set_enable()
945 if (ctx->VertexProgram.TwoSideEnabled == state) in _mesa_set_enable()
948 ctx->VertexProgram.TwoSideEnabled = state; in _mesa_set_enable()
1624 return ctx->VertexProgram.Enabled; in _mesa_IsEnabled()
1632 return ctx->VertexProgram.PointSizeEnabled; in _mesa_IsEnabled()
1637 return ctx->VertexProgram.TwoSideEnabled; in _mesa_IsEnabled()
Dcontext.c755 (8 * sizeof(ctx->VertexProgram._Current->info.outputs_written))); in check_context_limits()
1237 ctx->VertexProgram._MaintainTnlProgram in _mesa_initialize_context()
1239 if (ctx->VertexProgram._MaintainTnlProgram) { in _mesa_initialize_context()
1279 ctx->VertexProgram._MaintainTnlProgram = GL_TRUE; in _mesa_initialize_context()
1319 _mesa_reference_program(ctx, &ctx->VertexProgram.Current, NULL); in _mesa_free_context_data()
1320 _mesa_reference_program(ctx, &ctx->VertexProgram._Current, NULL); in _mesa_free_context_data()
1321 _mesa_reference_program(ctx, &ctx->VertexProgram._TnlProgram, NULL); in _mesa_free_context_data()
Dattrib.c127 GLboolean VertexProgram; member
381 attr->VertexProgram = ctx->VertexProgram.Enabled; in _mesa_PushAttrib()
382 attr->VertexProgramPointSize = ctx->VertexProgram.PointSizeEnabled; in _mesa_PushAttrib()
383 attr->VertexProgramTwoSide = ctx->VertexProgram.TwoSideEnabled; in _mesa_PushAttrib()
697 TEST_AND_UPDATE(ctx->VertexProgram.Enabled, in pop_enable_group()
698 enable->VertexProgram, in pop_enable_group()
700 TEST_AND_UPDATE(ctx->VertexProgram.PointSizeEnabled, in pop_enable_group()
703 TEST_AND_UPDATE(ctx->VertexProgram.TwoSideEnabled, in pop_enable_group()
/external/mesa3d/src/mesa/tnl/
Dt_vp_build.c43 if (!ctx->VertexProgram._Current || in _tnl_UpdateFixedFunctionProgram()
44 ctx->VertexProgram._Current == ctx->VertexProgram._TnlProgram) { in _tnl_UpdateFixedFunctionProgram()
45 ctx->VertexProgram._Current in _tnl_UpdateFixedFunctionProgram()
46 = ctx->VertexProgram._TnlProgram in _tnl_UpdateFixedFunctionProgram()
Dt_context.c68 if (ctx->VertexProgram._MaintainTnlProgram) { in _tnl_CreateContext()
134 const struct gl_program *vp = ctx->VertexProgram._Current; in _tnl_InvalidateState()
180 if (ctx->Point._Attenuated || ctx->VertexProgram.PointSizeEnabled) in _tnl_InvalidateState()
Dt_vb_program.c168 ctx->VertexProgram.Current->arb.IsPositionInvariant)) { in do_ndc_cliptest()
242 machine->Samplers = ctx->VertexProgram._Current->SamplerUnits; in init_machine()
295 struct gl_program *program = ctx->VertexProgram._Current; in run_vp()
516 if (ctx->VertexProgram._Current) { in validate_vp_stage()
Dt_vb_texmat.c62 if (!ctx->Texture._TexMatEnabled || ctx->VertexProgram._Current) in run_texmat_stage()
Dt_vb_points.c53 if (ctx->Point._Attenuated && !ctx->VertexProgram._Current) { in run_point_stage()
Dt_vb_light.c337 if (!ctx->Light.Enabled || ctx->VertexProgram._Current) in run_lighting()
391 if (!ctx->Light.Enabled || ctx->VertexProgram._Current) in validate_lighting()
/external/swiftshader/src/Pipeline/
DVertexProgram.cpp26 VertexProgram::VertexProgram(const VertexProcessor::State &state, const VertexShader *shader) in VertexProgram() function in sw::VertexProgram
58 VertexProgram::~VertexProgram() in ~VertexProgram()
62 void VertexProgram::program(UInt &index) in program()
604 Vector4f VertexProgram::fetchRegister(const Src &src, unsigned int offset) in fetchRegister()
739 RValue<Pointer<Byte>> VertexProgram::uniformAddress(int bufferIndex, unsigned int index) in uniformAddress()
751 …RValue<Pointer<Byte>> VertexProgram::uniformAddress(int bufferIndex, unsigned int index, Int &offs… in uniformAddress()
756 Vector4f VertexProgram::readConstant(const Src &src, unsigned int offset) in readConstant()
845 Int VertexProgram::relativeAddress(const Shader::Relative &rel, int bufferIndex) in relativeAddress()
874 Int4 VertexProgram::dynamicAddress(const Shader::Relative &rel) in dynamicAddress()
899 Int4 VertexProgram::enableMask(const Shader::Instruction *instruction) in enableMask()
[all …]
DVertexProgram.hpp30 class VertexProgram : public VertexRoutine, public ShaderCore class
33 VertexProgram(const VertexProcessor::State &state, const VertexShader *vertexShader);
35 virtual ~VertexProgram();
/external/swiftshader/src/Shader/
DVertexProgram.cpp26 VertexProgram::VertexProgram(const VertexProcessor::State &state, const VertexShader *shader) in VertexProgram() function in sw::VertexProgram
53 VertexProgram::~VertexProgram() in ~VertexProgram()
57 void VertexProgram::pipeline(UInt &index) in pipeline()
69 void VertexProgram::program(UInt &index) in program()
612 void VertexProgram::passThrough() in passThrough()
680 Vector4f VertexProgram::fetchRegister(const Src &src, unsigned int offset) in fetchRegister()
815 RValue<Pointer<Byte>> VertexProgram::uniformAddress(int bufferIndex, unsigned int index) in uniformAddress()
827 …RValue<Pointer<Byte>> VertexProgram::uniformAddress(int bufferIndex, unsigned int index, Int &offs… in uniformAddress()
832 Vector4f VertexProgram::readConstant(const Src &src, unsigned int offset) in readConstant()
921 Int VertexProgram::relativeAddress(const Shader::Relative &rel, int bufferIndex) in relativeAddress()
[all …]
DVertexProgram.hpp30 class VertexProgram : public VertexRoutine, public ShaderCore class
33 VertexProgram(const VertexProcessor::State &state, const VertexShader *vertexShader);
35 virtual ~VertexProgram();
/external/mesa3d/src/mesa/program/
Dprogram.c89 ctx->VertexProgram.Enabled = GL_FALSE; in _mesa_init_program()
90 ctx->VertexProgram.PointSizeEnabled = in _mesa_init_program()
92 ctx->VertexProgram.TwoSideEnabled = GL_FALSE; in _mesa_init_program()
93 _mesa_reference_program(ctx, &ctx->VertexProgram.Current, in _mesa_init_program()
95 assert(ctx->VertexProgram.Current); in _mesa_init_program()
96 ctx->VertexProgram.Cache = _mesa_new_program_cache(); in _mesa_init_program()
118 _mesa_reference_program(ctx, &ctx->VertexProgram.Current, NULL); in _mesa_free_program_data()
119 _mesa_delete_program_cache(ctx, ctx->VertexProgram.Cache); in _mesa_free_program_data()
143 _mesa_reference_program(ctx, &ctx->VertexProgram.Current, in _mesa_update_default_objects_program()
145 assert(ctx->VertexProgram.Current); in _mesa_update_default_objects_program()
Dprog_statevars.c402 COPY_4V(value, ctx->VertexProgram.Parameters[idx]); in _mesa_fetch_state()
405 if (!ctx->VertexProgram.Current->arb.LocalParams) { in _mesa_fetch_state()
406 ctx->VertexProgram.Current->arb.LocalParams = in _mesa_fetch_state()
407 rzalloc_array_size(ctx->VertexProgram.Current, in _mesa_fetch_state()
410 if (!ctx->VertexProgram.Current->arb.LocalParams) in _mesa_fetch_state()
415 ctx->VertexProgram.Current->arb.LocalParams[idx]); in _mesa_fetch_state()
/external/mesa3d/src/mesa/vbo/
Dvbo_context.h120 if (!ctx->VertexProgram._Current) in get_program_mode()
122 else if (ctx->VertexProgram._Current == ctx->VertexProgram._TnlProgram) in get_program_mode()
Dvbo_save_draw.c187 ctx->VertexProgram._Current->info.inputs_read; in bind_vertex_list()
309 if ((ctx->VertexProgram.Enabled && in vbo_save_playback_vertex_list()
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_rasterizer.c69 const struct gl_program *vertProg = ctx->VertexProgram._Current; in st_update_rasterizer()
210 raster->point_size_per_vertex = ctx->VertexProgram.PointSizeEnabled; in st_update_rasterizer()
220 else if (ctx->VertexProgram._Current) in st_update_rasterizer()
221 last = ctx->VertexProgram._Current; in st_update_rasterizer()
Dst_cb_rasterpos.c230 if (ctx->VertexProgram._Current == NULL || in st_RasterPos()
231 ctx->VertexProgram._Current == ctx->VertexProgram._TnlProgram) { in st_RasterPos()
Dst_atom.c73 struct gl_program *new_vp = ctx->VertexProgram._Current; in check_program_state()
143 struct gl_program *vp = st->ctx->VertexProgram._Current; in check_attrib_edgeflag()
Dst_atom_shader.c163 assert(st->ctx->VertexProgram._Current); in st_update_vp()
164 stvp = st_vertex_program(st->ctx->VertexProgram._Current); in st_update_vp()
/external/mesa3d/src/mesa/swrast_setup/
Dss_triangle.c252 (ctx->VertexProgram._Current && ctx->VertexProgram.TwoSideEnabled)) in _swsetup_choose_trifuncs()

123