summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-08-19 09:36:02 -0600
committerBrian Paul <[email protected]>2016-08-26 06:19:52 -0600
commit93779b87a1b69ed1f49cd18c08edd2d6ecb9196f (patch)
treeb2279f93889200e2ff5013e72dfa424e511315f1 /src
parentb1772651b728fd231b0c5885415b35f43a307c7f (diff)
svga: add comment about unsupported blend modes
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/svga/svga_pipe_blend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_blend.c b/src/gallium/drivers/svga/svga_pipe_blend.c
index a9f1c4fa0c8..408e175fea7 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;