diff options
author | Christoph Bumiller <[email protected]> | 2011-09-25 18:00:07 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-10-21 23:00:39 +0200 |
commit | ff583a47ee41390a594c5f569d991c9d4e5ee972 (patch) | |
tree | f18a36f6e549b90ec452b514ea69b867f8e387b4 | |
parent | 52c8c52b222e1fdb4c1f4ca3dedde9cd7b9c321f (diff) |
nvc0: fix assertion that immediate array buffer fits
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_program.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |