mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 20:40:09 +01:00
d3d12: replace use of MAX_VERTEX_STREAMS with PIPE_MAX_VERTEX_STREAMS
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
0b84e38684
commit
26a23a7c1f
1 changed files with 3 additions and 3 deletions
|
|
@ -110,7 +110,7 @@ fill_so_declaration(const struct pipe_stream_output_info *info,
|
|||
D3D12_SO_DECLARATION_ENTRY *entries, UINT *num_entries,
|
||||
UINT *strides, UINT *num_strides)
|
||||
{
|
||||
int next_offset[MAX_VERTEX_STREAMS] = { 0 };
|
||||
int next_offset[PIPE_MAX_VERTEX_STREAMS] = { 0 };
|
||||
|
||||
*num_entries = 0;
|
||||
|
||||
|
|
@ -150,9 +150,9 @@ fill_so_declaration(const struct pipe_stream_output_info *info,
|
|||
(*num_entries)++;
|
||||
}
|
||||
|
||||
for (unsigned i = 0; i < MAX_VERTEX_STREAMS; i++)
|
||||
for (unsigned i = 0; i < PIPE_MAX_VERTEX_STREAMS; i++)
|
||||
strides[i] = info->stride[i] * 4;
|
||||
*num_strides = MAX_VERTEX_STREAMS;
|
||||
*num_strides = PIPE_MAX_VERTEX_STREAMS;
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue