Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci flesh out alpha operations properly



details:   https://anonhg.NetBSD.org/src/rev/ef6edc6c436a
branches:  trunk
changeset: 819774:ef6edc6c436a
user:      macallan <macallan%NetBSD.org@localhost>
date:      Fri Dec 16 23:31:16 2016 +0000

description:
flesh out alpha operations properly

diffstat:

 sys/dev/pci/pm2reg.h |  23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r b82b4ce1b14a -r ef6edc6c436a sys/dev/pci/pm2reg.h
--- a/sys/dev/pci/pm2reg.h      Fri Dec 16 22:14:15 2016 +0000
+++ b/sys/dev/pci/pm2reg.h      Fri Dec 16 23:31:16 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pm2reg.h,v 1.11 2016/12/16 01:42:04 macallan Exp $     */
+/*     $NetBSD: pm2reg.h,v 1.12 2016/12/16 23:31:16 macallan Exp $     */
 
 /*
  * Copyright (c) 2009 Michael Lorenz
@@ -348,10 +348,23 @@
 #define PM2_RE_ALPHA_MODE      0x00008810
 #define                PM2AL_ENABLE            0x00000001
 #define                PM2AL_OPERATION_MASK    0x000000fe
-/* values according to manual, xf86-video-glint disagrees */
-#define                PM2AL_OP_FORMAT         16      /* needs to be shifted? */
-#define                PM2AL_OP_BLEND          84
-#define                PM2AL_OP_PREMULT        81
+#define                PM2AL_OP_SRC_IS_ZERO                    0x00000000
+#define                PM2AL_OP_SRC_IS_ONE                     0x00000002
+#define                PM2AL_OP_SRC_IS_DST_COLOR               0x00000004
+#define                PM2AL_OP_SRC_IS_ONE_MINUS_DST_COLOR     0x00000006
+#define                PM2AL_OP_SRC_IS_SRC_ALPHA               0x00000008
+#define                PM2AL_OP_SRC_IS_ONE_MINUS_SRC_ALPHA     0x0000000a
+#define                PM2AL_OP_SRC_IS_DST_ALPHA               0x0000000c
+#define                PM2AL_OP_SRC_IS_ONE_MINUS_DST_ALPHA     0x0000000e
+#define                PM2AL_OP_SRC_IS_SRC_ALPHA_SATURATE      0x00000010
+#define                PM2AL_OP_DST_IS_ZERO                    0x00000000
+#define                PM2AL_OP_DST_IS_ONE                     0x00000020
+#define                PM2AL_OP_DST_IS_SRC_COLOR               0x00000040
+#define                PM2AL_OP_DST_IS_ONE_MINUS_SRC_COLOR     0x00000060
+#define                PM2AL_OP_DST_IS_SRC_ALPHA               0x00000080
+#define                PM2AL_OP_DST_IS_ONE_MINUS_SRC_ALPHA     0x000000a0
+#define                PM2AL_OP_DST_IS_DST_ALPHA               0x000000c0
+#define                PM2AL_OP_DST_IS_ONE_MINUS_DST_ALPHA     0x000000e0
 /*
  * XXX
  * format of incoming data



Home | Main Index | Thread Index | Old Index