radeonsi: fix a compile failure due to disabled asserts
authorMarek Olšák <marek.olsak@amd.com>
Mon, 7 Aug 2017 20:51:45 +0000 (22:51 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 7 Aug 2017 20:51:45 +0000 (22:51 +0200)
src/gallium/drivers/radeonsi/si_descriptors.c

index 5a7f5d911a09e53568a9ecece7e0a5aa621720b7..1e0c422fb4b39010a6685c56346dd86c8a92fe24 100644 (file)
@@ -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);