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

Author: Lionel Landwerlin <[email protected]>
Date:   Thu Jul 13 16:32:54 2017 +0100

intel/compiler: no need to check unsigned is >= 0

CID: 1338342
Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>

---

 src/intel/compiler/brw_fs_nir.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/compiler/brw_fs_nir.cpp 
b/src/intel/compiler/brw_fs_nir.cpp
index a9dce42c38..aea2c62563 100644
--- a/src/intel/compiler/brw_fs_nir.cpp
+++ b/src/intel/compiler/brw_fs_nir.cpp
@@ -1776,7 +1776,7 @@ fs_visitor::set_gs_stream_control_data_bits(const fs_reg 
&vertex_count,
    assert(gs_compile->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.

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to