Mesa (master): glhd: Add test for logicop enable.

Corbin Simpson csimpson at kemper.freedesktop.org
Thu Jun 24 14:57:43 UTC 2010


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

Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date:   Thu Jun 24 07:18:59 2010 -0700

glhd: Add test for logicop enable.

Only for first RT at the moment, as there is no trivial way in galahad
to look at framebuffer state and (sadly) people don't usually calloc
their CSOs, so flags could be wrongly set.

On the other hand, of course, galahad will hopefully encourage more
people to calloc their CSOs. :3

---

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

diff --git a/src/gallium/drivers/galahad/glhd_context.c b/src/gallium/drivers/galahad/glhd_context.c
index 3b20cb1..ab6f17b 100644
--- a/src/gallium/drivers/galahad/glhd_context.c
+++ b/src/gallium/drivers/galahad/glhd_context.c
@@ -188,6 +188,13 @@ galahad_create_blend_state(struct pipe_context *_pipe,
    struct galahad_context *glhd_pipe = galahad_context(_pipe);
    struct pipe_context *pipe = glhd_pipe->pipe;
 
+   if (blend->logicop_enable) {
+      if (blend->rt[0].blend_enable) {
+         glhd_warn("Blending enabled for render target 0, but logicops "
+            "are enabled");
+      }
+   }
+
    return pipe->create_blend_state(pipe,
                                    blend);
 }




More information about the mesa-commit mailing list