summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-07-02 12:41:18 -0600
committerBrian Paul <[email protected]>2008-07-02 12:41:39 -0600
commit019ad5e284db08b46b484b409c1a54c302afd50b (patch)
treeb70239d34ce30ff1cd75b909c8028700145149f1 /src/gallium/auxiliary/tgsi
parent511733b862d2cb6836beb0965bdc5d699e6a2233 (diff)
gallium: replace 128 with MAX_LABELS
Diffstat (limited to 'src/gallium/auxiliary/tgsi')
-rw-r--r--src/gallium/auxiliary/tgsi/exec/tgsi_exec.c2
-rw-r--r--src/gallium/auxiliary/tgsi/exec/tgsi_exec.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/tgsi/exec/tgsi_exec.c b/src/gallium/auxiliary/tgsi/exec/tgsi_exec.c
index 13b8c2e5bf3..9649396c9b1 100644
--- a/src/gallium/auxiliary/tgsi/exec/tgsi_exec.c
+++ b/src/gallium/auxiliary/tgsi/exec/tgsi_exec.c
@@ -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;
diff --git a/src/gallium/auxiliary/tgsi/exec/tgsi_exec.h b/src/gallium/auxiliary/tgsi/exec/tgsi_exec.h
index 19bd78df3d3..ea182bc4540 100644
--- a/src/gallium/auxiliary/tgsi/exec/tgsi_exec.h
+++ b/src/gallium/auxiliary/tgsi/exec/tgsi_exec.h
@@ -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;
};