Mesa (master): nvc0: size is a uint16_t, remove unnecessary assertion

Ilia Mirkin imirkin at kemper.freedesktop.org
Tue Sep 9 00:11:12 UTC 2014


Module: Mesa
Branch: master
Commit: 9ced42b1aaee04734e7ff298a71f3203cc4a1d50
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ced42b1aaee04734e7ff298a71f3203cc4a1d50

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Sat Sep  6 11:11:58 2014 -0400

nvc0: size is a uint16_t, remove unnecessary assertion

Reported by Coverity.

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>

---

 src/gallium/drivers/nouveau/nvc0/nve4_compute.h |    1 -
 1 file changed, 1 deletion(-)

diff --git a/src/gallium/drivers/nouveau/nvc0/nve4_compute.h b/src/gallium/drivers/nouveau/nvc0/nve4_compute.h
index 79862b7..4d7af54 100644
--- a/src/gallium/drivers/nouveau/nvc0/nve4_compute.h
+++ b/src/gallium/drivers/nouveau/nvc0/nve4_compute.h
@@ -88,7 +88,6 @@ nve4_cp_launch_desc_set_cb(struct nve4_cp_launch_desc *desc,
 
    assert(index < 8);
    assert(!(base & 0xff));
-   assert(size <= 65536);
 
    desc->cb[index].address_l = address;
    desc->cb[index].address_h = address >> 32;




More information about the mesa-commit mailing list