[Mesa-dev] [PATCH 5/9] intel/compiler: don't check unsigned is >= 0
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Thu Jul 13 17:08:58 UTC 2017
CID: 1224468
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
src/intel/compiler/brw_vec4_gs_visitor.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/compiler/brw_vec4_gs_visitor.cpp b/src/intel/compiler/brw_vec4_gs_visitor.cpp
index f763f482365..ca59927cd3a 100644
--- a/src/intel/compiler/brw_vec4_gs_visitor.cpp
+++ b/src/intel/compiler/brw_vec4_gs_visitor.cpp
@@ -422,7 +422,7 @@ vec4_gs_visitor::set_stream_control_data_bits(unsigned stream_id)
assert(c->control_data_bits_per_vertex == 2);
/* Must be a valid stream */
- assert(stream_id >= 0 && stream_id < MAX_VERTEX_STREAMS);
+ assert(stream_id < MAX_VERTEX_STREAMS);
/* Control data bits are initialized to 0 so we don't have to set any
* bits when sending vertices to stream 0.
--
2.13.2
More information about the mesa-dev
mailing list