From ff583a47ee41390a594c5f569d991c9d4e5ee972 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Sun, 25 Sep 2011 18:00:07 +0200 Subject: [PATCH] nvc0: fix assertion that immediate array buffer fits --- src/gallium/drivers/nvc0/nvc0_program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2