From: Corbin Simpson Date: Thu, 24 Jun 2010 14:18:59 +0000 (-0700) Subject: glhd: Add test for logicop enable. X-Git-Tag: 062012170305~11659 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=484bb0ea58aae909c3f0accf9b085ac0a5861fe2;p=profile%2Fivi%2Fmesa.git 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 --- 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); }