From 0ea3ca3eca4c0c7ff3b41ff09e6cb30b532c8bc5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mathias=20Fr=C3=B6hlich?= Date: Sat, 2 Nov 2019 08:06:03 +0100 Subject: [PATCH] iris: Move down iris_emit_sbe_swiz in profiles. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Harvest the information gathered in the previous patch inside of iris. Reviewed-by: Matt Turner Signed-off-by: Mathias Fröhlich Part-of: --- src/gallium/drivers/iris/iris_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 6c760e04635..eab934fb738 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -3872,7 +3872,8 @@ iris_emit_sbe_swiz(struct iris_batch *batch, /* XXX: this should be generated when putting programs in place */ - for (int fs_attr = 0; fs_attr < VARYING_SLOT_MAX; fs_attr++) { + for (uint8_t idx = 0; idx < wm_prog_data->urb_setup_attribs_count; idx++) { + const uint8_t fs_attr = wm_prog_data->urb_setup_attribs[idx]; const int input_index = wm_prog_data->urb_setup[fs_attr]; if (input_index < 0 || input_index >= 16) continue; -- 2.30.2