pipe-loader: remove config from pipe_loader_create_screen
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 3 Aug 2017 13:02:09 +0000 (15:02 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 4 Aug 2017 08:46:24 +0000 (10:46 +0200)
commitae7283dcbc00c6df07118c47f393ed5f52046050
treeab844ffe2f94732b9bc74a1e3dfe1f13e9aaa391
parent9fb8476e67a4470bc327303cadcf5320b34c6ebc
pipe-loader: remove config from pipe_loader_create_screen

The config passed into the screen should be independent from the state
tracker, because at least in the case of radeonsi, the screen structure
can be shared between different state trackers.

Incidentally, this also fixes crashes that were recently introduced.

Fixes: a35a9e7c ("gallium: add driconf options to pipe_screen_config")
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
13 files changed:
src/gallium/auxiliary/pipe-loader/pipe_loader.c
src/gallium/auxiliary/pipe-loader/pipe_loader.h
src/gallium/auxiliary/vl/vl_winsys_dri.c
src/gallium/auxiliary/vl/vl_winsys_dri3.c
src/gallium/auxiliary/vl/vl_winsys_drm.c
src/gallium/state_trackers/clover/core/device.cpp
src/gallium/state_trackers/dri/dri2.c
src/gallium/state_trackers/dri/drisw.c
src/gallium/state_trackers/xa/xa_tracker.c
src/gallium/targets/d3dadapter9/drm.c
src/gallium/tests/trivial/compute.c
src/gallium/tests/trivial/quad-tex.c
src/gallium/tests/trivial/tri.c