From 417cf031a09f942f4aaea9999cfa31f5afe122cd Mon Sep 17 00:00:00 2001 From: Qiang Yu Date: Tue, 28 Jun 2022 11:30:15 +0800 Subject: [PATCH] nir: fix nir_xfb_info buffer_to_stream length MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: 19064b8c3a8 ("nir: Add a pass for gathering transform feedback info") Reviewed-by: Timur Kristóf Signed-off-by: Qiang Yu Part-of: --- 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];