From 023d6d82a95a8fcfa835e45e72050f42d32afc3b Mon Sep 17 00:00:00 2001 From: David Reveman Date: Tue, 11 May 2004 08:48:53 +0000 Subject: Convolution filter optimizations --- src/glitzint.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/glitzint.h') 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; -- cgit v1.2.3