summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/xa/xa_priv.h
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2011-11-24 21:59:06 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2011-11-25 16:38:16 +0100
commit4d04367eca66a85e26f7c0f5d6392823d13880f6 (patch)
treec8bef3fc07d14528947109d9700016b8b989345c /src/gallium/state_trackers/xa/xa_priv.h
parent404d2f9c866b3ac96834a8274775851440055d13 (diff)
downloadexternal_mesa3d-4d04367eca66a85e26f7c0f5d6392823d13880f6.zip
external_mesa3d-4d04367eca66a85e26f7c0f5d6392823d13880f6.tar.gz
external_mesa3d-4d04367eca66a85e26f7c0f5d6392823d13880f6.tar.bz2
st/xa, xa/vmwgfx: Use XA_EXPORT attribute to indicate global visibility
Also fix up Makefiles to use the default mesa compilation flags. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrants <jakob@vmware.com>
Diffstat (limited to 'src/gallium/state_trackers/xa/xa_priv.h')
-rw-r--r--src/gallium/state_trackers/xa/xa_priv.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/xa/xa_priv.h b/src/gallium/state_trackers/xa/xa_priv.h
index a281c90..d00114f 100644
--- a/src/gallium/state_trackers/xa/xa_priv.h
+++ b/src/gallium/state_trackers/xa/xa_priv.h
@@ -38,6 +38,12 @@
#include "pipe/p_context.h"
#include "pipe/p_state.h"
+#if defined(__GNUC__) && __GNUC__ >= 4
+#define XA_EXPORT __attribute__ ((visibility("default")))
+#else
+#define XA_EXPORT
+#endif
+
#define XA_VB_SIZE (100 * 4 * 3 * 4)
#define XA_LAST_SURFACE_TYPE (xa_type_yuv_component + 1)
#define XA_MAX_SAMPLERS 3