gallium: replace 128 with MAX_LABELS
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 2 Jul 2008 18:41:18 +0000 (12:41 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 2 Jul 2008 18:41:39 +0000 (12:41 -0600)
src/gallium/auxiliary/tgsi/exec/tgsi_exec.c
src/gallium/auxiliary/tgsi/exec/tgsi_exec.h

index 13b8c2e..9649396 100644 (file)
@@ -214,7 +214,7 @@ tgsi_exec_machine_bind_shader(
          break;
 
       case TGSI_TOKEN_TYPE_INSTRUCTION:
-         assert( labels->count < 128 );
+         assert( labels->count < MAX_LABELS );
 
          labels->labels[labels->count][0] = instno;
          labels->labels[labels->count][1] = pointer;
index 19bd78d..ea182bc 100644 (file)
@@ -34,6 +34,8 @@
 extern "C" {
 #endif
 
+#define MAX_LABELS 1024
+
 #define NUM_CHANNELS 4  /* R,G,B,A */
 #define QUAD_SIZE    4  /* 4 pixel/quad */
 
@@ -93,7 +95,7 @@ struct tgsi_sampler
  */
 struct tgsi_exec_labels
 {
-   unsigned labels[128][2];
+   unsigned labels[MAX_LABELS][2];
    unsigned count;
 };