targets: use the non-inline sw helpers
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 23 Nov 2015 15:28:55 +0000 (15:28 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 25 Nov 2015 20:25:29 +0000 (20:25 +0000)
Previously (with the inline ones) things were embedded into the
pipe-loader, which means that we cannot control/select what we want in
each target.

That also meant that at runtime we ended up with the empty
sw_screen_create() as the GALLIUM_SOFTPIPE/LLVMPIPE were not set.

v2: Cover all the targets, not just dri.

Cc: "11.1" <mesa-stable@lists.freedesktop.org>
Cc: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: Edward O'Callaghan <edward.ocallaghan@koparo.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Tested-by: Oded Gabbay <oded.gabbay@gmail.com>
Tested-by: Nick Sarnie <commendsarnex@gmail.com>
src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c
src/gallium/targets/d3dadapter9/drm.c
src/gallium/targets/dri/target.c
src/gallium/targets/omx/target.c
src/gallium/targets/va/target.c
src/gallium/targets/vdpau/target.c
src/gallium/targets/xa/target.c

index 091d4d6997df69d909b1ac8865c0d42fea4f1020..02ceb44c4d3092cc797efed7ec1883b30fe01beb 100644 (file)
 #include "sw/kms-dri/kms_dri_sw_winsys.h"
 #include "sw/null/null_sw_winsys.h"
 #include "sw/wrapper/wrapper_sw_winsys.h"
-#include "target-helpers/inline_sw_helper.h"
+#include "target-helpers/sw_helper_public.h"
 #include "state_tracker/drisw_api.h"
 #include "state_tracker/sw_driver.h"
+#include "state_tracker/sw_winsys.h"
 
 struct pipe_loader_sw_device {
    struct pipe_loader_device base;
index ad712db05eb5b52881e8b28e0d4d634c54eb8af1..5cd1ba7815c5d66971c7c9b5108ffdc82bdae2ad 100644 (file)
@@ -31,6 +31,7 @@
 #include "pipe/p_state.h"
 
 #include "target-helpers/drm_helper.h"
+#include "target-helpers/sw_helper.h"
 #include "state_tracker/drm_driver.h"
 
 #include "d3dadapter/d3dadapter9.h"
index d6fbd01b88f227f3fe59d8a73f052a62fbab6b0d..01532e242b8db1ec8a520c6b13662f70cb639700 100644 (file)
@@ -1,4 +1,5 @@
 #include "target-helpers/drm_helper.h"
+#include "target-helpers/sw_helper.h"
 
 #include "dri_screen.h"
 
index 42b1346d341debbd2a04d64a8893dd7f86b64db1..308e23bb4a03be70cd7294b82cef5856c7f42240 100644 (file)
@@ -1 +1,2 @@
 #include "target-helpers/drm_helper.h"
+#include "target-helpers/sw_helper.h"
index 42b1346d341debbd2a04d64a8893dd7f86b64db1..308e23bb4a03be70cd7294b82cef5856c7f42240 100644 (file)
@@ -1 +1,2 @@
 #include "target-helpers/drm_helper.h"
+#include "target-helpers/sw_helper.h"
index 42b1346d341debbd2a04d64a8893dd7f86b64db1..308e23bb4a03be70cd7294b82cef5856c7f42240 100644 (file)
@@ -1 +1,2 @@
 #include "target-helpers/drm_helper.h"
+#include "target-helpers/sw_helper.h"
index 42b1346d341debbd2a04d64a8893dd7f86b64db1..308e23bb4a03be70cd7294b82cef5856c7f42240 100644 (file)
@@ -1 +1,2 @@
 #include "target-helpers/drm_helper.h"
+#include "target-helpers/sw_helper.h"