mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-27 01:10:25 +01:00
radeonsi: make screen available to shader part compilation
to fix a crash in is_multi_part_shader.
Fixes: 1a0890dcf3 - radeonsi: change prototypes of si_is_multi_part_shader & si_is_merged_shader
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3561>
This commit is contained in:
parent
07a441d53f
commit
688d2901b8
1 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue