projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fbc393
)
gallium/util: replace 8 with PIPE_MAX_COLOR_BUFS
author
Brian Paul
<brianp@vmware.com>
Wed, 6 Jan 2010 00:07:44 +0000
(17:07 -0700)
committer
Brian Paul
<brianp@vmware.com>
Wed, 6 Jan 2010 00:07:44 +0000
(17:07 -0700)
src/gallium/auxiliary/util/u_simple_shaders.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_simple_shaders.c
b/src/gallium/auxiliary/util/u_simple_shaders.c
index daa1f82cdd1c0afd763d286c5386359bdc7c17f3..b751e29ab62dd5c25b88461a9fa95d40ad7f1dcf 100644
(file)
--- a/
src/gallium/auxiliary/util/u_simple_shaders.c
+++ b/
src/gallium/auxiliary/util/u_simple_shaders.c
@@
-203,10
+203,10
@@
util_make_fragment_clonecolor_shader(struct pipe_context *pipe, int num_cbufs)
{
struct ureg_program *ureg;
struct ureg_src src;
- struct ureg_dst dst[
8
];
+ struct ureg_dst dst[
PIPE_MAX_COLOR_BUFS
];
int i;
- assert(num_cbufs <=
8
);
+ assert(num_cbufs <=
PIPE_MAX_COLOR_BUFS
);
ureg = ureg_create( TGSI_PROCESSOR_FRAGMENT );
if (ureg == NULL)