06-02-12, Keith Whitwell <[EMAIL PROTECTED]> napisał(a): > Michał Król wrote: > > Hello, > > I am planning to enable ARB_vertex_shader in Mesa.FWIU, I must add a new > > stage in the tnl module.Done, dont see the results.Added conditions in > > other stages that are replacedby vertex shaders. Still I see black screen. > > Is your code being run? Try running gdb, breaking in _tnl_run_pipeline > and stepping through the code to see what's happening. > > > What other source files, besides t_vb_*.c, shouldI be aware of to have > > vertex shader running? > > As long as the new stage is in the pipeline, that should be enough (for > tnl). >
OK. It is working. Thanks. > > Also, I am not sure with the tnl attrib indexes.What is the diferrence > > between VERT_ATTRIB_*,VERT_RESULT_ and _TNL_ATTRIB_* index flavours?Are the > > attrib indices generic and sharedamong all vertex-programming models? > > The TNL_ATTRIB_* bits are a superset of VERT_ATTRIB bits and are used > throughout the pipeline. The VERT_RESULT_ bits aren't really used > except in the existing vertex-program stages, and they are translated > away straight away. This should change so that mesa's pipeline better > matches what is specified in the vertex and fragment program extensions. > Thanks. I just got confused after looking at vertex-program stages - lots of data movement using different indices. The only result left is the gl_ClipVertex. I suspect I should use it to perform user-clipping. I am not sure it is identical to vertex-programs, but I will blind-copy it and when the results are bad, I will hit the mesa-dev then.. -- Pozdrawiam, Michał Król
