summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2004-08-03 13:03:33 +0000
committerRoland Scheidegger <[email protected]>2004-08-03 13:03:33 +0000
commit8bd0a627fd97fea7c0a87625a71f6f587d14d941 (patch)
treeb9338449f42c6677e7145427888279dabf0dfcc6 /src/mesa/drivers/dri/r200
parenta032297b32fd692459d0d143068ef2b065886c0a (diff)
fix incorrect overflow detection when emitting R200_SS_MAT_1_SHININESS
Diffstat (limited to 'src/mesa/drivers/dri/r200')
-rw-r--r--src/mesa/drivers/dri/r200/r200_sanity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_sanity.c b/src/mesa/drivers/dri/r200/r200_sanity.c
index 2de262ede33..58d83ad95a1 100644
--- a/src/mesa/drivers/dri/r200/r200_sanity.c
+++ b/src/mesa/drivers/dri/r200/r200_sanity.c
@@ -817,7 +817,7 @@ static int radeon_emit_scalars2(
fprintf(stderr, "emit scalars2, start %d stride %d nr %d (end %d)\n",
start, stride, sz, start + stride * sz);
- if (start + stride * sz > 257) {
+ if (start + stride * sz > 258) {
fprintf(stderr, "emit scalars OVERFLOW %d/%d/%d\n", start, stride, sz);
return -1;
}