Module: Mesa Branch: main Commit: 417cf031a09f942f4aaea9999cfa31f5afe122cd URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=417cf031a09f942f4aaea9999cfa31f5afe122cd
Author: Qiang Yu <[email protected]> Date: Tue Jun 28 11:30:15 2022 +0800 nir: fix nir_xfb_info buffer_to_stream length Fixes: 19064b8c3a8 ("nir: Add a pass for gathering transform feedback info") Reviewed-by: Timur Kristóf <[email protected]> Signed-off-by: Qiang Yu <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17654> --- src/compiler/nir/nir_xfb_info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_xfb_info.h b/src/compiler/nir/nir_xfb_info.h index 301547f3392..424d730abfb 100644 --- a/src/compiler/nir/nir_xfb_info.h +++ b/src/compiler/nir/nir_xfb_info.h @@ -57,7 +57,7 @@ typedef struct nir_xfb_info { uint8_t streams_written; nir_xfb_buffer_info buffers[NIR_MAX_XFB_BUFFERS]; - uint8_t buffer_to_stream[NIR_MAX_XFB_STREAMS]; + uint8_t buffer_to_stream[NIR_MAX_XFB_BUFFERS]; uint16_t output_count; nir_xfb_output_info outputs[0];
