mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
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:
parent
d6f8bdcb5f
commit
0b84e38684
2 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue