From: Christoph Bumiller Date: Sun, 25 Sep 2011 16:00:07 +0000 (+0200) Subject: nvc0: fix assertion that immediate array buffer fits X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff583a47ee41390a594c5f569d991c9d4e5ee972;p=mesa.git nvc0: fix assertion that immediate array buffer fits --- diff --git a/src/gallium/drivers/nvc0/nvc0_program.c b/src/gallium/drivers/nvc0/nvc0_program.c index eaad0805909..b7badd35519 100644 --- a/src/gallium/drivers/nvc0/nvc0_program.c +++ b/src/gallium/drivers/nvc0/nvc0_program.c @@ -577,7 +577,7 @@ nvc0_program_upload_code(struct nvc0_context *nvc0, struct nvc0_program *prog) } prog->code_base = prog->res->start; prog->immd_base = align(prog->res->start + prog->immd_base, 0x100); - assert((prog->immd_size == 0) || (prog->immd_base + prog->immd_size < + assert((prog->immd_size == 0) || (prog->immd_base + prog->immd_size <= prog->res->start + prog->res->size)); code_pos = prog->code_base + NVC0_SHADER_HEADER_SIZE;