Home
last modified time | relevance | path

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

123

/external/mesa3d/src/mesa/main/
Dstate.c178 const struct gl_program *prevVP = ctx->VertexProgram._Current; in update_program()
271 assert(VP_MODE_SHADER == ctx->VertexProgram._VPMode); in update_program()
272 _mesa_reference_program(ctx, &ctx->VertexProgram._Current, vsProg); in update_program()
276 assert(VP_MODE_SHADER == ctx->VertexProgram._VPMode); in update_program()
277 _mesa_reference_program(ctx, &ctx->VertexProgram._Current, in update_program()
278 ctx->VertexProgram.Current); in update_program()
280 else if (ctx->VertexProgram._MaintainTnlProgram) { in update_program()
282 assert(VP_MODE_FF == ctx->VertexProgram._VPMode); in update_program()
283 _mesa_reference_program(ctx, &ctx->VertexProgram._Current, in update_program()
285 _mesa_reference_program(ctx, &ctx->VertexProgram._TnlProgram, in update_program()
[all …]
Dstate.h83 if (ctx->VertexProgram._Current && in _mesa_need_secondary_color()
84 (ctx->VertexProgram._Current != ctx->VertexProgram._TnlProgram) && in _mesa_need_secondary_color()
85 (ctx->VertexProgram._Current->info.inputs_read & VERT_BIT_COLOR1)) in _mesa_need_secondary_color()
102 return ctx->VertexProgram.Enabled && in _mesa_arb_vertex_program_enabled()
103 ctx->VertexProgram.Current->arb.Instructions; in _mesa_arb_vertex_program_enabled()
112 return ctx->VertexProgram.TwoSideEnabled; in _mesa_vertex_program_two_side_enabled()
Darbprogram.c111 curProg = ctx->VertexProgram.Current; in _mesa_BindProgramARB()
144 _mesa_reference_program(ctx, &ctx->VertexProgram.Current, newProg); in _mesa_BindProgramARB()
153 assert(ctx->VertexProgram.Current); in _mesa_BindProgramARB()
186 if (ctx->VertexProgram.Current && in _mesa_DeleteProgramsARB()
187 ctx->VertexProgram.Current->Id == ids[i]) { in _mesa_DeleteProgramsARB()
274 return ctx->VertexProgram.Current; in get_current_program()
336 *param = ctx->VertexProgram.Parameters[index]; in get_env_param_pointer()
453 set_program_string(ctx->VertexProgram.Current, target, format, len, string); in _mesa_ProgramStringARB()
575 dest = ctx->VertexProgram.Parameters[index]; in _mesa_ProgramEnvParameters4fvEXT()
648 if ((target == GL_VERTEX_PROGRAM_ARB && prog == ctx->VertexProgram.Current) || in _mesa_NamedProgramLocalParameter4fEXT()
[all …]
Denable.c106 if (ctx->VertexProgram.PointSizeEnabled != state) { in client_state()
108 ctx->VertexProgram.PointSizeEnabled = state; in client_state()
1047 if (ctx->VertexProgram.Enabled == state) in _mesa_set_enable()
1050 ctx->VertexProgram.Enabled = state; in _mesa_set_enable()
1060 if (ctx->VertexProgram.PointSizeEnabled == state) in _mesa_set_enable()
1063 ctx->VertexProgram.PointSizeEnabled = state; in _mesa_set_enable()
1068 if (ctx->VertexProgram.TwoSideEnabled == state) in _mesa_set_enable()
1071 ctx->VertexProgram.TwoSideEnabled = state; in _mesa_set_enable()
1822 return ctx->VertexProgram.Enabled; in _mesa_IsEnabled()
1830 return ctx->VertexProgram.PointSizeEnabled; in _mesa_IsEnabled()
[all …]
Dcontext.c769 (8 * sizeof(ctx->VertexProgram._Current->info.outputs_written))); in check_context_limits()
1248 ctx->VertexProgram._MaintainTnlProgram in _mesa_initialize_context()
1250 if (ctx->VertexProgram._MaintainTnlProgram) { in _mesa_initialize_context()
1292 ctx->VertexProgram._MaintainTnlProgram = GL_TRUE; in _mesa_initialize_context()
1332 _mesa_reference_program(ctx, &ctx->VertexProgram.Current, NULL); in _mesa_free_context_data()
1333 _mesa_reference_program(ctx, &ctx->VertexProgram._Current, NULL); in _mesa_free_context_data()
1334 _mesa_reference_program(ctx, &ctx->VertexProgram._TnlProgram, NULL); in _mesa_free_context_data()
/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.c69 if (ctx->VertexProgram._MaintainTnlProgram) { in _tnl_CreateContext()
135 const struct gl_program *vp = ctx->VertexProgram._Current; in _tnl_InvalidateState()
181 if (ctx->Point._Attenuated || ctx->VertexProgram.PointSizeEnabled) in _tnl_InvalidateState()
Dt_vb_program.c170 ctx->VertexProgram.Current->arb.IsPositionInvariant)) { in do_ndc_cliptest()
244 machine->Samplers = ctx->VertexProgram._Current->SamplerUnits; in init_machine()
297 struct gl_program *program = ctx->VertexProgram._Current; in run_vp()
518 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()
/external/swiftshader/src/Shader/
DVertexProgram.cpp26 VertexProgram::VertexProgram(const VertexProcessor::State &state, const VertexShader *shader) in VertexProgram() function in sw::VertexProgram
61 VertexProgram::~VertexProgram() in ~VertexProgram()
65 void VertexProgram::pipeline(UInt &index) in pipeline()
77 void VertexProgram::program(UInt &index) in program()
620 void VertexProgram::passThrough() in passThrough()
688 Vector4f VertexProgram::fetchRegister(const Src &src, unsigned int offset) in fetchRegister()
826 RValue<Pointer<Byte>> VertexProgram::uniformAddress(int bufferIndex, unsigned int index) in uniformAddress()
838 …RValue<Pointer<Byte>> VertexProgram::uniformAddress(int bufferIndex, unsigned int index, Int &offs… in uniformAddress()
843 Vector4f VertexProgram::readConstant(const Src &src, unsigned int offset) in readConstant()
935 Int VertexProgram::relativeAddress(const Shader::Relative &rel, int bufferIndex) in relativeAddress()
[all …]
DVertexProgram.hpp32 class VertexProgram : public VertexRoutine, public ShaderCore class
35 VertexProgram(const VertexProcessor::State &state, const VertexShader *vertexShader);
37 virtual ~VertexProgram();
DCMakeLists.txt31 VertexProgram.cpp
44 VertexProgram.hpp
/external/mesa3d/src/mesa/state_tracker/
Dst_util.h107 const struct gl_program *vertProg = ctx->VertexProgram._Current; in st_point_size_per_vertex()
118 return ctx->VertexProgram.PointSizeEnabled; in st_point_size_per_vertex()
128 else if (ctx->VertexProgram._Current) in st_point_size_per_vertex()
129 last = ctx->VertexProgram._Current; in st_point_size_per_vertex()
Dst_cb_rasterpos.c227 if (ctx->VertexProgram._Current == NULL || in st_RasterPos()
228 ctx->VertexProgram._Current == ctx->VertexProgram._TnlProgram) { in st_RasterPos()
Dst_atom.c76 struct gl_program *new_vp = ctx->VertexProgram._Current; in check_program_state()
146 struct gl_program *vp = st->ctx->VertexProgram._Current; in check_attrib_edgeflag()
/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()
103 ctx->VertexProgram._VPMode = VP_MODE_FF; in _mesa_init_program()
119 _mesa_reference_program(ctx, &ctx->VertexProgram.Current, NULL); in _mesa_free_program_data()
120 _mesa_delete_program_cache(ctx, ctx->VertexProgram.Cache); in _mesa_free_program_data()
144 _mesa_reference_program(ctx, &ctx->VertexProgram.Current, in _mesa_update_default_objects_program()
[all …]
Dprog_statevars.c402 COPY_4V(value, ctx->VertexProgram.Parameters[idx]); in fetch_state()
405 if (!ctx->VertexProgram.Current->arb.LocalParams) { in fetch_state()
406 ctx->VertexProgram.Current->arb.LocalParams = in fetch_state()
407 rzalloc_array_size(ctx->VertexProgram.Current, in fetch_state()
410 if (!ctx->VertexProgram.Current->arb.LocalParams) in fetch_state()
415 ctx->VertexProgram.Current->arb.LocalParams[idx]); in fetch_state()
/external/swiftshader/src/Pipeline/
DVertexProgram.hpp25 class VertexProgram : public VertexRoutine class
28 VertexProgram(
34 virtual ~VertexProgram();
DVertexProgram.cpp27 VertexProgram::VertexProgram( in VertexProgram() function in sw::VertexProgram
64 VertexProgram::~VertexProgram() in ~VertexProgram()
68 void VertexProgram::program(Pointer<UInt> &batch, UInt &vertexCount) in program()
DBUILD.gn28 "VertexProgram.hpp",
53 "VertexProgram.cpp",
DCMakeLists.txt48 VertexProgram.cpp
49 VertexProgram.hpp
/external/mesa3d/src/mesa/vbo/
Dvbo_save_draw.c127 const gl_vertex_processing_mode mode = ctx->VertexProgram._VPMode; in bind_vertex_list()
201 if ((ctx->VertexProgram.Enabled && in vbo_save_playback_vertex_list()
/external/mesa3d/src/mesa/swrast_setup/
Dss_triangle.c252 (ctx->VertexProgram._Current && ctx->VertexProgram.TwoSideEnabled)) in _swsetup_choose_trifuncs()
/external/swiftshader/src/Device/
DVertexProcessor.cpp99 VertexRoutine *generator = new VertexProgram(state, pipelineLayout, vertexShader, descriptorSets); in routine()

123