enum pipe_texture_target target;
struct {
struct pipe_framebuffer_state fb;
+ struct nv50_rasterizer_stateobj *rast;
struct nv50_program *vp;
struct nv50_program *gp;
struct nv50_program *fp;
struct nv50_tsc_entry *sampler[2];
uint32_t dirty;
} saved;
+ struct nv50_rasterizer_stateobj rast;
};
static void
ctx->saved.fb.cbufs[0] = nv50->framebuffer.cbufs[0];
ctx->saved.fb.zsbuf = nv50->framebuffer.zsbuf;
+ ctx->saved.rast = nv50->rast;
+
ctx->saved.vp = nv50->vertprog;
ctx->saved.gp = nv50->gmtyprog;
ctx->saved.fp = nv50->fragprog;
+ nv50->rast = &ctx->rast;
+
nv50->vertprog = &blitter->vp;
nv50->gmtyprog = NULL;
nv50->fragprog = ctx->fp;
nv50->framebuffer.cbufs[0] = blit->saved.fb.cbufs[0];
nv50->framebuffer.zsbuf = blit->saved.fb.zsbuf;
+ nv50->rast = blit->saved.rast;
+
nv50->vertprog = blit->saved.vp;
nv50->gmtyprog = blit->saved.gp;
nv50->fragprog = blit->saved.fp;
nv50->blit->nv50 = nv50;
+ nv50->blit->rast.pipe.half_pixel_center = 1;
+
return TRUE;
}