summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-01-04 12:32:01 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-01-04 12:32:01 +0000
commit22d7b61791c382088a6c0df5dce3a15405d6c495 (patch)
tree23dacda6068e55b4fa9f5a363a9cb2c439b2f28c
parenta7c7a9108f76aa312f3d5efa466052b914c81484 (diff)
i965: Fix off-by-one in assert
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-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 ca5e6b60..b1ac6ba8 100644
--- a/src/i965_render.c
+++ b/src/i965_render.c
@@ -1730,8 +1730,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;