summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-01-04 12:32:01 +0000
committerOwain G. Ainsworth <oga@openbsd.org>2011-05-29 23:12:05 +0100
commit80f16404fa5a2abaa86563072e46f062becd991e (patch)
tree4aee56a96247f35c08981dbf102a362941f3d128
parentdd72c3e2a471d90678f876cb2c6ef3073c151a51 (diff)
i965: Fix off-by-one in assert
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> (cherry picked from commit 22d7b61791c382088a6c0df5dce3a15405d6c495) Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
-rw-r--r--src/i965_render.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/i965_render.c b/src/i965_render.c
index b53049c9..392d7fa0 100644
--- a/src/i965_render.c
+++ b/src/i965_render.c
@@ -1726,8 +1726,7 @@ static void i965_bind_surfaces(struct intel_screen_private *intel)
{
uint32_t *binding_table;
- assert(intel->surface_used + 4 * sizeof(struct brw_surface_state_padded) <
- sizeof(intel->surface_data));
+ assert(intel->surface_used + 4 * sizeof(struct brw_surface_state_padded) <= sizeof(intel->surface_data));
binding_table = (uint32_t*) (intel->surface_data + intel->surface_used);
intel->surface_table = intel->surface_used;