From: Kenneth Graunke Date: Wed, 11 Jul 2018 20:22:02 +0000 (-0700) Subject: iris: set even if no outputs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c1cefff5225c8da01267e3eba95dc316156ef57;p=mesa.git iris: set even if no outputs --- diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index b6c90ad49fa..a0e643ea49c 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1753,9 +1753,6 @@ iris_create_so_decl_list(const struct pipe_stream_output_info *info, int max_decls = 0; STATIC_ASSERT(ARRAY_SIZE(so_decl[0]) >= MAX_PROGRAM_OUTPUTS); - if (info->num_outputs == 0) - return NULL; - memset(so_decl, 0, sizeof(so_decl)); /* Construct the list of SO_DECLs to be emitted. The formatting of the