summaryrefslogtreecommitdiff
path: root/src/glitzint.h
diff options
context:
space:
mode:
authorDavid Reveman <davidr@novell.com>2004-05-11 08:48:53 +0000
committerDavid Reveman <davidr@novell.com>2004-05-11 08:48:53 +0000
commit023d6d82a95a8fcfa835e45e72050f42d32afc3b (patch)
tree363b9112f53bc0c9d417207aef514cf8315b8f7c /src/glitzint.h
parentbd929a49e21d7745ef623bbce42e26a17e79bd45 (diff)
Convolution filter optimizations
Diffstat (limited to 'src/glitzint.h')
-rw-r--r--src/glitzint.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/glitzint.h b/src/glitzint.h
index e32a583..81aa4b8 100644
--- a/src/glitzint.h
+++ b/src/glitzint.h
@@ -181,13 +181,18 @@ typedef enum {
#define GLITZ_VERTEX_PROGRAM_TYPES 2
#define GLITZ_FRAGMENT_PROGRAM_TYPES 18
+
+#define GLITZ_CONVOLUTION_TYPES 2
+#define GLITZ_FRAGMENT_CONVOLUTION_PROGRAM_TYPES \
+ (GLITZ_FRAGMENT_PROGRAM_TYPES * GLITZ_CONVOLUTION_TYPES * 3)
#define GLITZ_FRAGMENT_PROGRAMMATIC_PROGRAM_TYPES \
(GLITZ_FRAGMENT_PROGRAM_TYPES * GLITZ_PROGRAMMATIC_SURFACE_NUM)
typedef struct _glitz_programs_t {
glitz_gl_uint_t vertex_convolution[GLITZ_VERTEX_PROGRAM_TYPES];
glitz_gl_uint_t fragment_simple[GLITZ_FRAGMENT_PROGRAM_TYPES];
- glitz_gl_uint_t fragment_convolution[GLITZ_FRAGMENT_PROGRAM_TYPES * 3];
+ glitz_gl_uint_t
+ fragment_convolution[GLITZ_FRAGMENT_CONVOLUTION_PROGRAM_TYPES];
glitz_gl_uint_t
fragment_programmatic[GLITZ_FRAGMENT_PROGRAMMATIC_PROGRAM_TYPES];
} glitz_programs_t;