llvmpipe: Pass framebuffer coords to shader.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 9 Oct 2009 15:18:19 +0000 (16:18 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 9 Oct 2009 15:18:38 +0000 (16:18 +0100)
src/gallium/drivers/llvmpipe/lp_rast.c

index d4f369d..e733315 100644 (file)
@@ -250,7 +250,7 @@ void lp_rast_shade_quads( struct lp_rasterizer *rast,
 
    /* run shader */
    state->jit_function( &state->jit_context,
-                        x, y,
+                        rast->x + x, rast->y + y,
                         inputs->a0,
                         inputs->dadx,
                         inputs->dady,