util: Use OpenGL rasterization rules in blits and mipmap generation.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Fri, 19 Sep 2008 14:25:29 +0000 (23:25 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Fri, 19 Sep 2008 14:25:29 +0000 (23:25 +0900)
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));