nvc0: fix assertion that immediate array buffer fits
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sun, 25 Sep 2011 16:00:07 +0000 (18:00 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 21 Oct 2011 21:00:39 +0000 (23:00 +0200)
src/gallium/drivers/nvc0/nvc0_program.c

index eaad08059097f762125f8b23166352ba180bd1c5..b7badd35519920fd78049e067b5f6ae7ca78eb33 100644 (file)
@@ -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;