summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2017-08-07 22:51:45 +0200
committerMarek Olšák <marek.olsak@amd.com>2017-08-07 22:51:45 +0200
commita2703fc119e8e806c6a8f47d665709d9e84aaa6a (patch)
treea8366270789b4a0974e14b97b31d7305bc168374
parent0fe0320dc074023489e2852771edc487c0142927 (diff)
radeonsi: fix a compile failure due to disabled asserts
-rw-r--r--src/gallium/drivers/radeonsi/si_descriptors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c
index 5a7f5d911a..1e0c422fb4 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);