From: Marek Olšák Date: Mon, 7 Aug 2017 20:51:45 +0000 (+0200) Subject: radeonsi: fix a compile failure due to disabled asserts X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a2703fc119e8e806c6a8f47d665709d9e84aaa6a;p=mesa.git radeonsi: fix a compile failure due to disabled asserts --- diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index 5a7f5d911a0..1e0c422fb4b 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -161,7 +161,7 @@ static bool si_ce_upload(struct si_context *sctx, unsigned ce_offset, unsigned s size = align(size, cache_line_size); (void)si_ce_ram_size; /* silence an "unused" warning */ - assert(offset + size <= si_ce_ram_size(sctx)); + assert(ce_offset + size <= si_ce_ram_size(sctx)); u_suballocator_alloc(sctx->ce_suballocator, size, cache_line_size, out_offset, (struct pipe_resource**)out_buf);