mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 03:30:10 +01:00
remove dead code related to vf module
This commit is contained in:
parent
8175eaa3b4
commit
9d9e838974
2 changed files with 2 additions and 35 deletions
|
|
@ -31,14 +31,12 @@
|
|||
*/
|
||||
|
||||
|
||||
#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 );
|
||||
|
|
@ -59,12 +57,6 @@ struct draw_context *draw_create( void )
|
|||
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...
|
||||
*/
|
||||
{
|
||||
|
|
@ -81,14 +73,6 @@ struct draw_context *draw_create( void )
|
|||
|
||||
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 );
|
||||
}
|
||||
|
|
@ -194,16 +178,6 @@ void draw_set_viewport_state( struct draw_context *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.
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -220,13 +220,6 @@ struct draw_context
|
|||
struct prim_header queue[PRIM_QUEUE_LENGTH];
|
||||
unsigned queue_nr;
|
||||
} pq;
|
||||
|
||||
|
||||
#if 0
|
||||
ubyte *verts;
|
||||
boolean in_vb;
|
||||
struct vertex_fetch *vf;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue