diff options
author | Elie Tournier <[email protected]> | 2018-09-06 10:46:32 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-09-10 15:30:17 -0400 |
commit | 9179c745f646a85274b7a295ee3577e48f8d0d3f (patch) | |
tree | 3715cbca0d75df6a1c45bd7bb6fbf9c7a3aca633 /src/gallium/state_trackers | |
parent | f6e09db2e613c215257b80f40957d580165b5ddf (diff) |
gallium: Correctly handle no config context creation
This patch fixes the following Piglit test:
spec@egl_mesa_configless_context@basic
It also fixes few test in a virgl guest.
v2: Evaluate the value of no_config (Ilia)
Suggested-by: Emil Velikov <[email protected]>
Signed-off-by: Elie Tournier <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/dri/dri_screen.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/dri/dri_screen.c b/src/gallium/state_trackers/dri/dri_screen.c index 027e85024f0..308e23685e8 100644 --- a/src/gallium/state_trackers/dri/dri_screen.c +++ b/src/gallium/state_trackers/dri/dri_screen.c @@ -308,8 +308,10 @@ dri_fill_st_visual(struct st_visual *stvis, { memset(stvis, 0, sizeof(*stvis)); - if (!mode) + if (!mode) { + stvis->no_config = true; return; + } /* Deduce the color format. */ switch (mode->redMask) { |