diff options
author | Aapo Tahkola <[email protected]> | 2005-02-01 16:56:52 +0000 |
---|---|---|
committer | Aapo Tahkola <[email protected]> | 2005-02-01 16:56:52 +0000 |
commit | 7bccfa10269f228844d65ee198414970ad8cc881 (patch) | |
tree | 14f17796403860b5f3f74173f139b8f517ae66cf /src/mesa/drivers/dri/r300/r300_context.h | |
parent | 5dd4030e761d1c880e0860ba0d5173e8272da8d0 (diff) |
Vertex programs work now with some restrictions. I expect arbvptorus to work
correctly when normals are delivered. Please note that some programs only
start in vb mode as there is something wrong in immediate mode vb code.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_context.h')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_context.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.h b/src/mesa/drivers/dri/r300/r300_context.h index 0e0aa665a56..14f06fba4cc 100644 --- a/src/mesa/drivers/dri/r300/r300_context.h +++ b/src/mesa/drivers/dri/r300/r300_context.h @@ -538,7 +538,10 @@ struct r300_vertex_program { struct r300_vertex_shader_fragment program; struct r300_vertex_shader_fragment params; - + + int t2rs; + unsigned long num_temporaries; /* Number of temp vars used by program */ + int inputs[VERT_ATTRIB_MAX]; }; /* 64 appears to be the maximum */ @@ -686,6 +689,8 @@ extern void r300DestroyContext(__DRIcontextPrivate * driContextPriv); extern GLboolean r300CreateContext(const __GLcontextModes * glVisual, __DRIcontextPrivate * driContextPriv, void *sharedContextPrivate); + extern void r300InitVertexProgFuncs(struct dd_function_table *functions); +extern void r300VertexProgUpdateParams(GLcontext *ctx, struct r300_vertex_program *vp); #endif /* __R300_CONTEXT_H__ */ |