*/
-#ifdef MESA
-#include "main/macros.h"
-#else
#include "pipe/p_util.h"
-#endif
#include "draw_context.h"
#include "draw_private.h"
+
+
struct draw_context *draw_create( void )
{
struct draw_context *draw = CALLOC_STRUCT( draw_context );
ASSIGN_4V( draw->plane[5], 0, 0, -1, 1 ); /* mesa's a bit wonky */
draw->nr_planes = 6;
-#ifdef MESA
-#if 0
- draw->vf = vf_create( GL_TRUE );
-#endif
-#endif
-
/* Statically allocate maximum sized vertices for the cache - could be cleverer...
*/
{
void draw_destroy( struct draw_context *draw )
{
-#if 0/*def MESA*/
- if (draw->header.storage) {
- ALIGN_FREE( draw->header.storage );
- }
-
- vf_destroy( draw->vf );
-#endif
-
free( draw->vcache.vertex[0] ); /* Frees all the vertices. */
free( draw );
}
const struct pipe_viewport_state *viewport )
{
draw->viewport = *viewport; /* struct copy */
-
-#ifdef MESA
-#if 0
- vf_set_vp_scale_translate( draw->vf, viewport->scale, viewport->translate );
-#endif
-#endif
-
- /* Using tnl/ and vf/ modules is temporary while getting started.
- * Full pipe will have vertex shader, vertex fetch of its own.
- */
}