summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/galahad
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2010-06-24 07:18:59 -0700
committerCorbin Simpson <[email protected]>2010-06-24 07:22:29 -0700
commit484bb0ea58aae909c3f0accf9b085ac0a5861fe2 (patch)
tree6354d96012d7a9afd0559cd2ac98c9485f67edd4 /src/gallium/drivers/galahad
parent49735d1c6c6d8dbb41eba0495be0c657b6714fe8 (diff)
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
Diffstat (limited to 'src/gallium/drivers/galahad')
-rw-r--r--src/gallium/drivers/galahad/glhd_context.c7
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 3b20cb1e7f8..ab6f17b3ab8 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);
}