From 0b84e38684f888b2262566790239b27ad5acc40e Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Sun, 6 Aug 2023 13:01:40 +0800 Subject: [PATCH] intel/brw: use 4 instead of MAX_VERTEX_STREAMS to avoid #include "mesa/main/config.h" Signed-off-by: Yonggang Luo Reviewed-by: Faith Ekstrand Part-of: --- src/intel/compiler/brw_fs_nir.cpp | 2 +- src/intel/compiler/brw_vec4_gs_visitor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/compiler/brw_fs_nir.cpp b/src/intel/compiler/brw_fs_nir.cpp index 5976ab2..3d3a6b6 100644 --- a/src/intel/compiler/brw_fs_nir.cpp +++ b/src/intel/compiler/brw_fs_nir.cpp @@ -2311,7 +2311,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 < MAX_VERTEX_STREAMS); + assert(stream_id < 4); /* 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. diff --git a/src/intel/compiler/brw_vec4_gs_visitor.cpp b/src/intel/compiler/brw_vec4_gs_visitor.cpp index 3c6f53e..4dbdf78 100644 --- a/src/intel/compiler/brw_vec4_gs_visitor.cpp +++ b/src/intel/compiler/brw_vec4_gs_visitor.cpp @@ -390,7 +390,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 < MAX_VERTEX_STREAMS); + assert(stream_id < 4); /* 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.7.4