intel/brw: use 4 instead of MAX_VERTEX_STREAMS to avoid #include "mesa/main/config.h"
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24824>
This commit is contained in:
@@ -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.
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user