[Mesa-dev] [PATCH 1/1] clover: Pass valid config structure to pipe_loader_create_screen

Jan Vesely jan.vesely at rutgers.edu
Wed Aug 2 18:15:45 UTC 2017


Fixes: Fixes: bc7f41e11d3 ("gallium: add pipe_screen_config to screen_create functions")
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
apply with the other build/link fixes

 src/gallium/state_trackers/clover/core/device.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/clover/core/device.cpp b/src/gallium/state_trackers/clover/core/device.cpp
index bd07670f38..0527c5713f 100644
--- a/src/gallium/state_trackers/clover/core/device.cpp
+++ b/src/gallium/state_trackers/clover/core/device.cpp
@@ -42,7 +42,8 @@ namespace {
 
 device::device(clover::platform &platform, pipe_loader_device *ldev) :
    platform(platform), ldev(ldev) {
-   pipe = pipe_loader_create_screen(ldev, NULL);
+   struct pipe_screen_config config = {};
+   pipe = pipe_loader_create_screen(ldev, &config);
    if (!pipe || !pipe->get_param(pipe, PIPE_CAP_COMPUTE)) {
       if (pipe)
          pipe->destroy(pipe);
-- 
2.13.3



More information about the mesa-dev mailing list