#include "st_draw.h"
#include "st_program.h"
#include "st_cb_rasterpos.h"
+#include "st_util.h"
#include "draw/draw_context.h"
#include "draw/draw_pipe.h"
#include "vbo/vbo.h"
struct gl_context *ctx = rs->ctx;
struct st_context *st = st_context(ctx);
const GLfloat height = (GLfloat) ctx->DrawBuffer->Height;
- const ubyte *outputMapping = st->vp->result_to_output;
+ struct st_vertex_program *stvp = (struct st_vertex_program *)st->vp;
+ const ubyte *outputMapping = stvp->result_to_output;
const GLfloat *pos;
GLuint i;
rs->prim.indexed = 0;
rs->prim.begin = 1;
rs->prim.end = 1;
- rs->prim.weak = 0;
rs->prim.start = 0;
rs->prim.count = 1;
+ rs->prim.pad = 0;
+ rs->prim.num_instances = 1;
+ rs->prim.base_instance = 0;
return rs;
}