From: José Fonseca Date: Tue, 22 Sep 2009 16:40:20 +0000 (+0100) Subject: wgl: Flatten the source tree. X-Git-Tag: mesa-7.8~2720^2~217 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f724036f0045bd28f323af3666c43b3ef03b6886;p=platform%2Fupstream%2Fmesa.git wgl: Flatten the source tree. It is easier to have the WGL API on top of the ICD callbacks as Microsoft's own implementation does, than to have a seperate shared entity. This source reorganization is in antecipation of that. --- diff --git a/src/gallium/state_trackers/wgl/SConscript b/src/gallium/state_trackers/wgl/SConscript index 69b8861..2e9aacb 100644 --- a/src/gallium/state_trackers/wgl/SConscript +++ b/src/gallium/state_trackers/wgl/SConscript @@ -18,20 +18,18 @@ if env['platform'] in ['windows']: ]) sources = [ - 'icd/stw_icd.c', - - 'wgl/stw_wgl.c', - - 'shared/stw_context.c', - 'shared/stw_device.c', - 'shared/stw_framebuffer.c', - 'shared/stw_pixelformat.c', - 'shared/stw_extensionsstring.c', - 'shared/stw_extswapinterval.c', - 'shared/stw_getprocaddress.c', - 'shared/stw_extgallium.c', - 'shared/stw_arbpixelformat.c', - 'shared/stw_tls.c', + 'stw_context.c', + 'stw_device.c', + 'stw_ext_extensionsstring.c', + 'stw_ext_gallium.c', + 'stw_ext_pixelformat.c', + 'stw_ext_swapinterval.c', + 'stw_framebuffer.c', + 'stw_getprocaddress.c', + 'stw_icd.c', + 'stw_pixelformat.c', + 'stw_tls.c', + 'stw_wgl.c', ] wgl = env.ConvenienceLibrary( diff --git a/src/gallium/state_trackers/wgl/shared/stw_context.c b/src/gallium/state_trackers/wgl/stw_context.c similarity index 98% rename from src/gallium/state_trackers/wgl/shared/stw_context.c rename to src/gallium/state_trackers/wgl/stw_context.c index 4968ecc..ead2c13 100644 --- a/src/gallium/state_trackers/wgl/shared/stw_context.c +++ b/src/gallium/state_trackers/wgl/stw_context.c @@ -39,10 +39,10 @@ #include "trace/tr_context.h" #endif -#include "shared/stw_device.h" -#include "shared/stw_winsys.h" -#include "shared/stw_framebuffer.h" -#include "shared/stw_pixelformat.h" +#include "stw_device.h" +#include "stw_winsys.h" +#include "stw_framebuffer.h" +#include "stw_pixelformat.h" #include "stw_public.h" #include "stw_context.h" #include "stw_tls.h" diff --git a/src/gallium/state_trackers/wgl/shared/stw_context.h b/src/gallium/state_trackers/wgl/stw_context.h similarity index 100% rename from src/gallium/state_trackers/wgl/shared/stw_context.h rename to src/gallium/state_trackers/wgl/stw_context.h diff --git a/src/gallium/state_trackers/wgl/shared/stw_device.c b/src/gallium/state_trackers/wgl/stw_device.c similarity index 96% rename from src/gallium/state_trackers/wgl/shared/stw_device.c rename to src/gallium/state_trackers/wgl/stw_device.c index 0b69549..cbc3570 100644 --- a/src/gallium/state_trackers/wgl/shared/stw_device.c +++ b/src/gallium/state_trackers/wgl/stw_device.c @@ -37,12 +37,12 @@ #include "trace/tr_texture.h" #endif -#include "shared/stw_device.h" -#include "shared/stw_winsys.h" -#include "shared/stw_pixelformat.h" -#include "shared/stw_public.h" -#include "shared/stw_tls.h" -#include "shared/stw_framebuffer.h" +#include "stw_device.h" +#include "stw_winsys.h" +#include "stw_pixelformat.h" +#include "stw_public.h" +#include "stw_tls.h" +#include "stw_framebuffer.h" #ifdef WIN32_THREADS extern _glthread_Mutex OneTimeLock; diff --git a/src/gallium/state_trackers/wgl/shared/stw_device.h b/src/gallium/state_trackers/wgl/stw_device.h similarity index 100% rename from src/gallium/state_trackers/wgl/shared/stw_device.h rename to src/gallium/state_trackers/wgl/stw_device.h diff --git a/src/gallium/state_trackers/wgl/shared/stw_extensionsstring.c b/src/gallium/state_trackers/wgl/stw_ext_extensionsstring.c similarity index 100% rename from src/gallium/state_trackers/wgl/shared/stw_extensionsstring.c rename to src/gallium/state_trackers/wgl/stw_ext_extensionsstring.c diff --git a/src/gallium/state_trackers/wgl/shared/stw_extgallium.c b/src/gallium/state_trackers/wgl/stw_ext_gallium.c similarity index 98% rename from src/gallium/state_trackers/wgl/shared/stw_extgallium.c rename to src/gallium/state_trackers/wgl/stw_ext_gallium.c index fc22737..13a42fe 100644 --- a/src/gallium/state_trackers/wgl/shared/stw_extgallium.c +++ b/src/gallium/state_trackers/wgl/stw_ext_gallium.c @@ -30,6 +30,7 @@ #include "stw_public.h" #include "stw_device.h" #include "stw_winsys.h" +#include "stw_ext_gallium.h" #ifdef DEBUG #include "trace/tr_screen.h" diff --git a/src/gallium/state_trackers/wgl/shared/stw_extgallium.h b/src/gallium/state_trackers/wgl/stw_ext_gallium.h similarity index 100% rename from src/gallium/state_trackers/wgl/shared/stw_extgallium.h rename to src/gallium/state_trackers/wgl/stw_ext_gallium.h diff --git a/src/gallium/state_trackers/wgl/shared/stw_arbpixelformat.c b/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c similarity index 100% rename from src/gallium/state_trackers/wgl/shared/stw_arbpixelformat.c rename to src/gallium/state_trackers/wgl/stw_ext_pixelformat.c diff --git a/src/gallium/state_trackers/wgl/shared/stw_extswapinterval.c b/src/gallium/state_trackers/wgl/stw_ext_swapinterval.c similarity index 100% rename from src/gallium/state_trackers/wgl/shared/stw_extswapinterval.c rename to src/gallium/state_trackers/wgl/stw_ext_swapinterval.c diff --git a/src/gallium/state_trackers/wgl/shared/stw_framebuffer.c b/src/gallium/state_trackers/wgl/stw_framebuffer.c similarity index 100% rename from src/gallium/state_trackers/wgl/shared/stw_framebuffer.c rename to src/gallium/state_trackers/wgl/stw_framebuffer.c diff --git a/src/gallium/state_trackers/wgl/shared/stw_framebuffer.h b/src/gallium/state_trackers/wgl/stw_framebuffer.h similarity index 100% rename from src/gallium/state_trackers/wgl/shared/stw_framebuffer.h rename to src/gallium/state_trackers/wgl/stw_framebuffer.h diff --git a/src/gallium/state_trackers/wgl/shared/stw_getprocaddress.c b/src/gallium/state_trackers/wgl/stw_getprocaddress.c similarity index 98% rename from src/gallium/state_trackers/wgl/shared/stw_getprocaddress.c rename to src/gallium/state_trackers/wgl/stw_getprocaddress.c index 879ced9..57ce63e 100644 --- a/src/gallium/state_trackers/wgl/shared/stw_getprocaddress.c +++ b/src/gallium/state_trackers/wgl/stw_getprocaddress.c @@ -34,7 +34,7 @@ #include "glapi/glapi.h" #include "stw_public.h" -#include "stw_extgallium.h" +#include "stw_ext_gallium.h" struct stw_extension_entry { diff --git a/src/gallium/state_trackers/wgl/icd/stw_icd.c b/src/gallium/state_trackers/wgl/stw_icd.c similarity index 99% rename from src/gallium/state_trackers/wgl/icd/stw_icd.c rename to src/gallium/state_trackers/wgl/stw_icd.c index 7dc6841..dc5ba91 100644 --- a/src/gallium/state_trackers/wgl/icd/stw_icd.c +++ b/src/gallium/state_trackers/wgl/stw_icd.c @@ -33,8 +33,8 @@ #include "util/u_debug.h" #include "pipe/p_thread.h" -#include "shared/stw_public.h" -#include "icd/stw_icd.h" +#include "stw_public.h" +#include "stw_icd.h" #define DBG 0 diff --git a/src/gallium/state_trackers/wgl/icd/stw_icd.h b/src/gallium/state_trackers/wgl/stw_icd.h similarity index 100% rename from src/gallium/state_trackers/wgl/icd/stw_icd.h rename to src/gallium/state_trackers/wgl/stw_icd.h diff --git a/src/gallium/state_trackers/wgl/shared/stw_pixelformat.c b/src/gallium/state_trackers/wgl/stw_pixelformat.c similarity index 100% rename from src/gallium/state_trackers/wgl/shared/stw_pixelformat.c rename to src/gallium/state_trackers/wgl/stw_pixelformat.c diff --git a/src/gallium/state_trackers/wgl/shared/stw_pixelformat.h b/src/gallium/state_trackers/wgl/stw_pixelformat.h similarity index 100% rename from src/gallium/state_trackers/wgl/shared/stw_pixelformat.h rename to src/gallium/state_trackers/wgl/stw_pixelformat.h diff --git a/src/gallium/state_trackers/wgl/shared/stw_public.h b/src/gallium/state_trackers/wgl/stw_public.h similarity index 100% rename from src/gallium/state_trackers/wgl/shared/stw_public.h rename to src/gallium/state_trackers/wgl/stw_public.h diff --git a/src/gallium/state_trackers/wgl/shared/stw_tls.c b/src/gallium/state_trackers/wgl/stw_tls.c similarity index 100% rename from src/gallium/state_trackers/wgl/shared/stw_tls.c rename to src/gallium/state_trackers/wgl/stw_tls.c diff --git a/src/gallium/state_trackers/wgl/shared/stw_tls.h b/src/gallium/state_trackers/wgl/stw_tls.h similarity index 100% rename from src/gallium/state_trackers/wgl/shared/stw_tls.h rename to src/gallium/state_trackers/wgl/stw_tls.h diff --git a/src/gallium/state_trackers/wgl/wgl/stw_wgl.c b/src/gallium/state_trackers/wgl/stw_wgl.c similarity index 99% rename from src/gallium/state_trackers/wgl/wgl/stw_wgl.c rename to src/gallium/state_trackers/wgl/stw_wgl.c index a131292..d4b2f51 100644 --- a/src/gallium/state_trackers/wgl/wgl/stw_wgl.c +++ b/src/gallium/state_trackers/wgl/stw_wgl.c @@ -28,7 +28,7 @@ #include #include "util/u_debug.h" -#include "shared/stw_public.h" +#include "stw_public.h" #include "stw_wgl.h" diff --git a/src/gallium/state_trackers/wgl/wgl/stw_wgl.h b/src/gallium/state_trackers/wgl/stw_wgl.h similarity index 100% rename from src/gallium/state_trackers/wgl/wgl/stw_wgl.h rename to src/gallium/state_trackers/wgl/stw_wgl.h diff --git a/src/gallium/state_trackers/wgl/shared/stw_winsys.h b/src/gallium/state_trackers/wgl/stw_winsys.h similarity index 100% rename from src/gallium/state_trackers/wgl/shared/stw_winsys.h rename to src/gallium/state_trackers/wgl/stw_winsys.h