util: Use OpenGL rasterization rules in blits and mipmap generation.
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 13 Nov 2008 15:58:47 +0000 (08:58 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 14 Nov 2008 19:58:12 +0000 (12:58 -0700)
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_gen_mipmap.c

index 9adf72944e6d2938eb835fc8089baabbe2e9531b..d28201ac8dc4726de3ff82ab76ff519c7cf7d5b8 100644 (file)
@@ -104,6 +104,7 @@ util_create_blit(struct pipe_context *pipe, struct cso_context *cso)
    ctx->rasterizer.cull_mode = PIPE_WINDING_NONE;
    ctx->rasterizer.bypass_clipping = 1;
    /*ctx->rasterizer.bypass_vs = 1;*/
+   ctx->rasterizer.gl_rasterization_rules = 1;
 
    /* samplers */
    memset(&ctx->sampler, 0, sizeof(ctx->sampler));
index b19a649bbcdaac6af82d80034fad3bfde717af6d..9d305ad763ae8e437740d0a8c12d7d7619d36d20 100644 (file)
@@ -725,6 +725,7 @@ util_create_gen_mipmap(struct pipe_context *pipe,
    ctx->rasterizer.cull_mode = PIPE_WINDING_NONE;
    ctx->rasterizer.bypass_clipping = 1;
    /*ctx->rasterizer.bypass_vs = 1;*/
+   ctx->rasterizer.gl_rasterization_rules = 1;
 
    /* sampler state */
    memset(&ctx->sampler, 0, sizeof(ctx->sampler));