From 26a23a7c1fe610c3b4e5f6b051d2b24eb42b6c81 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Sun, 6 Aug 2023 13:02:12 +0800 Subject: [PATCH] d3d12: replace use of MAX_VERTEX_STREAMS with PIPE_MAX_VERTEX_STREAMS Signed-off-by: Yonggang Luo Reviewed-by: Faith Ekstrand Part-of: --- src/gallium/drivers/d3d12/d3d12_pipeline_state.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/d3d12/d3d12_pipeline_state.cpp b/src/gallium/drivers/d3d12/d3d12_pipeline_state.cpp index 587083d..0085b3a 100644 --- a/src/gallium/drivers/d3d12/d3d12_pipeline_state.cpp +++ b/src/gallium/drivers/d3d12/d3d12_pipeline_state.cpp @@ -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 -- 2.7.4