glhd: Simple rasterizer checks.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 23 Jun 2010 18:34:51 +0000 (11:34 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 23 Jun 2010 18:34:51 +0000 (11:34 -0700)
From the documentation.

src/gallium/drivers/galahad/glhd_context.c

index 5531f579ec2c0a8917ce9c9b7b3544b912cf4e6a..3b20cb1e7f845e220ceef98bf732f84d74547035 100644 (file)
@@ -269,6 +269,16 @@ galahad_create_rasterizer_state(struct pipe_context *_pipe,
    struct galahad_context *glhd_pipe = galahad_context(_pipe);
    struct pipe_context *pipe = glhd_pipe->pipe;
 
+   if (rasterizer->point_quad_rasterization) {
+       if (rasterizer->point_smooth) {
+           glhd_warn("Point smoothing requested but ignored");
+       }
+   } else {
+       if (rasterizer->sprite_coord_enable) {
+           glhd_warn("Point sprites requested but ignored");
+       }
+   }
+
    return pipe->create_rasterizer_state(pipe,
                                         rasterizer);
 }