From 484bb0ea58aae909c3f0accf9b085ac0a5861fe2 Mon Sep 17 00:00:00 2001 From: Corbin Simpson Date: Thu, 24 Jun 2010 07:18:59 -0700 Subject: [PATCH] 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 file changed, 7 insertions(+) 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); } -- 2.30.2