Mesa (master): glhd: Simple rasterizer checks.

Corbin Simpson csimpson at kemper.freedesktop.org
Wed Jun 23 19:33:06 UTC 2010


Module: Mesa
Branch: master
Commit: e6ee4e1bdf0f82fd3c09a0cb95a5844bed25a1d1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e6ee4e1bdf0f82fd3c09a0cb95a5844bed25a1d1

Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date:   Wed Jun 23 11:34:51 2010 -0700

glhd: Simple rasterizer checks.

>From the documentation.

---

 src/gallium/drivers/galahad/glhd_context.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/galahad/glhd_context.c b/src/gallium/drivers/galahad/glhd_context.c
index 5531f57..3b20cb1 100644
--- a/src/gallium/drivers/galahad/glhd_context.c
+++ b/src/gallium/drivers/galahad/glhd_context.c
@@ -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);
 }




More information about the mesa-commit mailing list