From: Brian Paul Date: Fri, 19 Aug 2016 15:36:02 +0000 (-0600) Subject: svga: add comment about unsupported blend modes X-Git-Tag: upstream/17.1.0~6952 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93779b87a1b69ed1f49cd18c08edd2d6ecb9196f;p=platform%2Fupstream%2Fmesa.git svga: add comment about unsupported blend modes --- diff --git a/src/gallium/drivers/svga/svga_pipe_blend.c b/src/gallium/drivers/svga/svga_pipe_blend.c index a9f1c4f..408e175 100644 --- a/src/gallium/drivers/svga/svga_pipe_blend.c +++ b/src/gallium/drivers/svga/svga_pipe_blend.c @@ -37,6 +37,9 @@ static inline unsigned svga_translate_blend_factor(const struct svga_context *svga, unsigned factor) { + /* Note: there is no SVGA3D_BLENDOP_[INV]BLENDFACTORALPHA so + * we can't translate PIPE_BLENDFACTOR_[INV_]CONST_ALPHA properly. + */ switch (factor) { case PIPE_BLENDFACTOR_ZERO: return SVGA3D_BLENDOP_ZERO; case PIPE_BLENDFACTOR_SRC_ALPHA: return SVGA3D_BLENDOP_SRCALPHA;