diff options
author | Marek Olšák <[email protected]> | 2020-01-24 16:28:54 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-01-25 05:59:24 +0000 |
commit | 688d2901b8466559fd4ed87a49fbc1cf8ed2ca1b (patch) | |
tree | 4025a5dbf18a5e91b2d25d9a655d6de8654375dd /src/gallium/drivers | |
parent | 07a441d53f8a0d400ffde8bcb0a4af14ff11a2b4 (diff) |
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: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3561>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 4 |
1 files changed, 4 insertions, 0 deletions
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: |