From 688d2901b8466559fd4ed87a49fbc1cf8ed2ca1b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 24 Jan 2020 16:28:54 -0500 Subject: [PATCH] radeonsi: make screen available to shader part compilation to fix a crash in is_multi_part_shader. Fixes: 1a0890dcf30 - radeonsi: change prototypes of si_is_multi_part_shader & si_is_merged_shader Part-of: --- src/gallium/drivers/radeonsi/si_shader.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 105e76260cd..fa35489ea50 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -2090,7 +2090,11 @@ si_get_shader_part(struct si_screen *sscreen, result = CALLOC_STRUCT(si_shader_part); result->key = *key; + struct si_shader_selector sel = {}; + sel.screen = sscreen; + struct si_shader shader = {}; + shader.selector = &sel; switch (type) { case PIPE_SHADER_VERTEX: -- 2.30.2