Compare commits
8 Commits
19.2
...
mesa-10.5.
Author | SHA1 | Date | |
---|---|---|---|
|
b9518a41d4 | ||
|
550d7c26e7 | ||
|
716886c338 | ||
|
8898b68a3f | ||
|
93675c7aac | ||
|
6555c00b19 | ||
|
d03de1dd7d | ||
|
b1b7b5b068 |
16
configure.ac
16
configure.ac
@@ -1572,7 +1572,8 @@ if test -n "$with_gallium_drivers" -a "x$with_gallium_drivers" != xswrast; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$enable_xvmc" = xyes -o \
|
if test "x$enable_dri" = xyes -o \
|
||||||
|
"x$enable_xvmc" = xyes -o \
|
||||||
"x$enable_vdpau" = xyes -o \
|
"x$enable_vdpau" = xyes -o \
|
||||||
"x$enable_omx" = xyes -o \
|
"x$enable_omx" = xyes -o \
|
||||||
"x$enable_va" = xyes; then
|
"x$enable_va" = xyes; then
|
||||||
@@ -1730,6 +1731,13 @@ if test "x$with_egl_platforms" != "x" -a "x$enable_egl" != xyes; then
|
|||||||
AC_MSG_ERROR([cannot build egl state tracker without EGL library])
|
AC_MSG_ERROR([cannot build egl state tracker without EGL library])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland_scanner],
|
||||||
|
WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland_scanner`,
|
||||||
|
WAYLAND_SCANNER='')
|
||||||
|
if test "x$WAYLAND_SCANNER" = x; then
|
||||||
|
AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner])
|
||||||
|
fi
|
||||||
|
|
||||||
# Do per-EGL platform setups and checks
|
# Do per-EGL platform setups and checks
|
||||||
egl_platforms=`IFS=', '; echo $with_egl_platforms`
|
egl_platforms=`IFS=', '; echo $with_egl_platforms`
|
||||||
for plat in $egl_platforms; do
|
for plat in $egl_platforms; do
|
||||||
@@ -1737,9 +1745,9 @@ for plat in $egl_platforms; do
|
|||||||
wayland)
|
wayland)
|
||||||
PKG_CHECK_MODULES([WAYLAND], [wayland-client >= $WAYLAND_REQUIRED wayland-server >= $WAYLAND_REQUIRED])
|
PKG_CHECK_MODULES([WAYLAND], [wayland-client >= $WAYLAND_REQUIRED wayland-server >= $WAYLAND_REQUIRED])
|
||||||
|
|
||||||
WAYLAND_PREFIX=`$PKG_CONFIG --variable=prefix wayland-client`
|
if test "x$WAYLAND_SCANNER" = x; then
|
||||||
AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner],,
|
AC_MSG_ERROR([wayland-scanner is needed to compile the wayland egl platform])
|
||||||
[${WAYLAND_PREFIX}/bin$PATH_SEPARATOR$PATH])
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
x11)
|
x11)
|
||||||
|
@@ -534,7 +534,7 @@ dri2_setup_screen(_EGLDisplay *disp)
|
|||||||
disp->Extensions.KHR_gl_texture_2D_image = EGL_TRUE;
|
disp->Extensions.KHR_gl_texture_2D_image = EGL_TRUE;
|
||||||
disp->Extensions.KHR_gl_texture_cubemap_image = EGL_TRUE;
|
disp->Extensions.KHR_gl_texture_cubemap_image = EGL_TRUE;
|
||||||
}
|
}
|
||||||
#ifdef HAVE_DRM_PLATFORM
|
#ifdef HAVE_LIBDRM
|
||||||
if (dri2_dpy->image->base.version >= 8 &&
|
if (dri2_dpy->image->base.version >= 8 &&
|
||||||
dri2_dpy->image->createImageFromDmaBufs) {
|
dri2_dpy->image->createImageFromDmaBufs) {
|
||||||
disp->Extensions.EXT_image_dma_buf_import = EGL_TRUE;
|
disp->Extensions.EXT_image_dma_buf_import = EGL_TRUE;
|
||||||
@@ -1335,7 +1335,7 @@ dri2_create_image_khr_renderbuffer(_EGLDisplay *disp, _EGLContext *ctx,
|
|||||||
return dri2_create_image_from_dri(disp, dri_image);
|
return dri2_create_image_from_dri(disp, dri_image);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_DRM_PLATFORM
|
#ifdef HAVE_LIBDRM
|
||||||
static _EGLImage *
|
static _EGLImage *
|
||||||
dri2_create_image_mesa_drm_buffer(_EGLDisplay *disp, _EGLContext *ctx,
|
dri2_create_image_mesa_drm_buffer(_EGLDisplay *disp, _EGLContext *ctx,
|
||||||
EGLClientBuffer buffer, const EGLint *attr_list)
|
EGLClientBuffer buffer, const EGLint *attr_list)
|
||||||
@@ -1571,7 +1571,7 @@ dri2_create_wayland_buffer_from_image(_EGLDriver *drv, _EGLDisplay *dpy,
|
|||||||
return dri2_dpy->vtbl->create_wayland_buffer_from_image(drv, dpy, img);
|
return dri2_dpy->vtbl->create_wayland_buffer_from_image(drv, dpy, img);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_DRM_PLATFORM
|
#ifdef HAVE_LIBDRM
|
||||||
static EGLBoolean
|
static EGLBoolean
|
||||||
dri2_check_dma_buf_attribs(const _EGLImageAttribs *attrs)
|
dri2_check_dma_buf_attribs(const _EGLImageAttribs *attrs)
|
||||||
{
|
{
|
||||||
@@ -1821,7 +1821,7 @@ dri2_create_image_khr(_EGLDriver *drv, _EGLDisplay *disp,
|
|||||||
return dri2_create_image_khr_texture(disp, ctx, target, buffer, attr_list);
|
return dri2_create_image_khr_texture(disp, ctx, target, buffer, attr_list);
|
||||||
case EGL_GL_RENDERBUFFER_KHR:
|
case EGL_GL_RENDERBUFFER_KHR:
|
||||||
return dri2_create_image_khr_renderbuffer(disp, ctx, buffer, attr_list);
|
return dri2_create_image_khr_renderbuffer(disp, ctx, buffer, attr_list);
|
||||||
#ifdef HAVE_DRM_PLATFORM
|
#ifdef HAVE_LIBDRM
|
||||||
case EGL_DRM_BUFFER_MESA:
|
case EGL_DRM_BUFFER_MESA:
|
||||||
return dri2_create_image_mesa_drm_buffer(disp, ctx, buffer, attr_list);
|
return dri2_create_image_mesa_drm_buffer(disp, ctx, buffer, attr_list);
|
||||||
#endif
|
#endif
|
||||||
@@ -1829,7 +1829,7 @@ dri2_create_image_khr(_EGLDriver *drv, _EGLDisplay *disp,
|
|||||||
case EGL_WAYLAND_BUFFER_WL:
|
case EGL_WAYLAND_BUFFER_WL:
|
||||||
return dri2_create_image_wayland_wl_buffer(disp, ctx, buffer, attr_list);
|
return dri2_create_image_wayland_wl_buffer(disp, ctx, buffer, attr_list);
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_DRM_PLATFORM
|
#ifdef HAVE_LIBDRM
|
||||||
case EGL_LINUX_DMA_BUF_EXT:
|
case EGL_LINUX_DMA_BUF_EXT:
|
||||||
return dri2_create_image_dma_buf(disp, ctx, buffer, attr_list);
|
return dri2_create_image_dma_buf(disp, ctx, buffer, attr_list);
|
||||||
#endif
|
#endif
|
||||||
@@ -1853,7 +1853,7 @@ dri2_destroy_image_khr(_EGLDriver *drv, _EGLDisplay *disp, _EGLImage *image)
|
|||||||
return EGL_TRUE;
|
return EGL_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_DRM_PLATFORM
|
#ifdef HAVE_LIBDRM
|
||||||
static _EGLImage *
|
static _EGLImage *
|
||||||
dri2_create_drm_image_mesa(_EGLDriver *drv, _EGLDisplay *disp,
|
dri2_create_drm_image_mesa(_EGLDriver *drv, _EGLDisplay *disp,
|
||||||
const EGLint *attr_list)
|
const EGLint *attr_list)
|
||||||
@@ -2215,7 +2215,7 @@ _eglBuiltInDriverDRI2(const char *args)
|
|||||||
dri2_drv->base.API.CreateImageKHR = dri2_create_image;
|
dri2_drv->base.API.CreateImageKHR = dri2_create_image;
|
||||||
dri2_drv->base.API.DestroyImageKHR = dri2_destroy_image_khr;
|
dri2_drv->base.API.DestroyImageKHR = dri2_destroy_image_khr;
|
||||||
dri2_drv->base.API.CreateWaylandBufferFromImageWL = dri2_create_wayland_buffer_from_image;
|
dri2_drv->base.API.CreateWaylandBufferFromImageWL = dri2_create_wayland_buffer_from_image;
|
||||||
#ifdef HAVE_DRM_PLATFORM
|
#ifdef HAVE_LIBDRM
|
||||||
dri2_drv->base.API.CreateDRMImageMESA = dri2_create_drm_image_mesa;
|
dri2_drv->base.API.CreateDRMImageMESA = dri2_create_drm_image_mesa;
|
||||||
dri2_drv->base.API.ExportDRMImageMESA = dri2_export_drm_image_mesa;
|
dri2_drv->base.API.ExportDRMImageMESA = dri2_export_drm_image_mesa;
|
||||||
#endif
|
#endif
|
||||||
|
@@ -53,9 +53,7 @@ libgalliumvl_stub_la_SOURCES = \
|
|||||||
|
|
||||||
if NEED_GALLIUM_VL
|
if NEED_GALLIUM_VL
|
||||||
|
|
||||||
noinst_LTLIBRARIES += libgalliumvl.la
|
COMMON_VL_CFLAGS = \
|
||||||
|
|
||||||
libgalliumvl_la_CFLAGS = \
|
|
||||||
$(AM_CFLAGS) \
|
$(AM_CFLAGS) \
|
||||||
$(VL_CFLAGS) \
|
$(VL_CFLAGS) \
|
||||||
$(LIBDRM_CFLAGS) \
|
$(LIBDRM_CFLAGS) \
|
||||||
@@ -63,14 +61,27 @@ libgalliumvl_la_CFLAGS = \
|
|||||||
-DPIPE_SEARCH_DIR=\"$(libdir)/gallium-pipe\"
|
-DPIPE_SEARCH_DIR=\"$(libdir)/gallium-pipe\"
|
||||||
|
|
||||||
if HAVE_GALLIUM_STATIC_TARGETS
|
if HAVE_GALLIUM_STATIC_TARGETS
|
||||||
libgalliumvl_la_CFLAGS += \
|
COMMON_VL_CFLAGS += \
|
||||||
-DGALLIUM_STATIC_TARGETS=1
|
-DGALLIUM_STATIC_TARGETS=1
|
||||||
|
|
||||||
endif # HAVE_GALLIUM_STATIC_TARGETS
|
endif # HAVE_GALLIUM_STATIC_TARGETS
|
||||||
|
|
||||||
|
noinst_LTLIBRARIES += libgalliumvl.la
|
||||||
|
|
||||||
|
libgalliumvl_la_CFLAGS = \
|
||||||
|
$(COMMON_VL_CFLAGS)
|
||||||
|
|
||||||
libgalliumvl_la_SOURCES = \
|
libgalliumvl_la_SOURCES = \
|
||||||
$(VL_SOURCES)
|
$(VL_SOURCES)
|
||||||
|
|
||||||
|
noinst_LTLIBRARIES += libgalliumvlwinsys.la
|
||||||
|
|
||||||
|
libgalliumvlwinsys_la_CFLAGS = \
|
||||||
|
$(COMMON_VL_CFLAGS)
|
||||||
|
|
||||||
|
libgalliumvlwinsys_la_SOURCES = \
|
||||||
|
$(VL_WINSYS_SOURCES)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
|
@@ -334,10 +334,13 @@ VL_SOURCES := \
|
|||||||
vl/vl_video_buffer.h \
|
vl/vl_video_buffer.h \
|
||||||
vl/vl_vlc.h \
|
vl/vl_vlc.h \
|
||||||
vl/vl_winsys.h \
|
vl/vl_winsys.h \
|
||||||
vl/vl_winsys_dri.c \
|
|
||||||
vl/vl_zscan.c \
|
vl/vl_zscan.c \
|
||||||
vl/vl_zscan.h
|
vl/vl_zscan.h
|
||||||
|
|
||||||
|
# XXX: Nuke this as our dri targets no longer depend on VL.
|
||||||
|
VL_WINSYS_SOURCES := \
|
||||||
|
vl/vl_winsys_dri.c
|
||||||
|
|
||||||
VL_STUB_SOURCES := \
|
VL_STUB_SOURCES := \
|
||||||
vl/vl_stubs.c
|
vl/vl_stubs.c
|
||||||
|
|
||||||
|
@@ -44,7 +44,7 @@ gallium_dri_la_LIBADD = \
|
|||||||
$(top_builddir)/src/mesa/drivers/dri/common/libdricommon.la \
|
$(top_builddir)/src/mesa/drivers/dri/common/libdricommon.la \
|
||||||
$(top_builddir)/src/mesa/drivers/dri/common/libmegadriver_stub.la \
|
$(top_builddir)/src/mesa/drivers/dri/common/libmegadriver_stub.la \
|
||||||
$(top_builddir)/src/gallium/state_trackers/dri/libdri.la \
|
$(top_builddir)/src/gallium/state_trackers/dri/libdri.la \
|
||||||
$(top_builddir)/src/gallium/auxiliary/libgalliumvl_stub.la \
|
$(top_builddir)/src/gallium/auxiliary/libgalliumvl.la \
|
||||||
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
|
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
|
||||||
$(top_builddir)/src/gallium/drivers/galahad/libgalahad.la \
|
$(top_builddir)/src/gallium/drivers/galahad/libgalahad.la \
|
||||||
$(top_builddir)/src/gallium/drivers/noop/libnoop.la \
|
$(top_builddir)/src/gallium/drivers/noop/libnoop.la \
|
||||||
|
@@ -24,6 +24,7 @@ endif # HAVE_LD_VERSION_SCRIPT
|
|||||||
|
|
||||||
libomx_mesa_la_LIBADD = \
|
libomx_mesa_la_LIBADD = \
|
||||||
$(top_builddir)/src/gallium/state_trackers/omx/libomxtracker.la \
|
$(top_builddir)/src/gallium/state_trackers/omx/libomxtracker.la \
|
||||||
|
$(top_builddir)/src/gallium/auxiliary/libgalliumvlwinsys.la \
|
||||||
$(top_builddir)/src/gallium/auxiliary/libgalliumvl.la \
|
$(top_builddir)/src/gallium/auxiliary/libgalliumvl.la \
|
||||||
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
|
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
|
||||||
$(top_builddir)/src/util/libmesautil.la \
|
$(top_builddir)/src/util/libmesautil.la \
|
||||||
|
@@ -40,6 +40,7 @@ PIPE_LIBS =
|
|||||||
|
|
||||||
if NEED_GALLIUM_VL
|
if NEED_GALLIUM_VL
|
||||||
PIPE_LIBS += \
|
PIPE_LIBS += \
|
||||||
|
$(top_builddir)/src/gallium/auxiliary/libgalliumvlwinsys.la \
|
||||||
$(top_builddir)/src/gallium/auxiliary/libgalliumvl.la
|
$(top_builddir)/src/gallium/auxiliary/libgalliumvl.la
|
||||||
else
|
else
|
||||||
PIPE_LIBS += \
|
PIPE_LIBS += \
|
||||||
|
@@ -25,6 +25,7 @@ endif # HAVE_LD_VERSION_SCRIPT
|
|||||||
# NOTE: gallium_drv_video does not use(link against) libva
|
# NOTE: gallium_drv_video does not use(link against) libva
|
||||||
gallium_drv_video_la_LIBADD = \
|
gallium_drv_video_la_LIBADD = \
|
||||||
$(top_builddir)/src/gallium/state_trackers/va/libvatracker.la \
|
$(top_builddir)/src/gallium/state_trackers/va/libvatracker.la \
|
||||||
|
$(top_builddir)/src/gallium/auxiliary/libgalliumvlwinsys.la \
|
||||||
$(top_builddir)/src/gallium/auxiliary/libgalliumvl.la \
|
$(top_builddir)/src/gallium/auxiliary/libgalliumvl.la \
|
||||||
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
|
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
|
||||||
$(top_builddir)/src/util/libmesautil.la \
|
$(top_builddir)/src/util/libmesautil.la \
|
||||||
|
@@ -30,6 +30,7 @@ endif # HAVE_LD_DYNAMIC_LIST
|
|||||||
# NOTE: libvdpau_gallium does not use(link against) libvdpau
|
# NOTE: libvdpau_gallium does not use(link against) libvdpau
|
||||||
libvdpau_gallium_la_LIBADD = \
|
libvdpau_gallium_la_LIBADD = \
|
||||||
$(top_builddir)/src/gallium/state_trackers/vdpau/libvdpautracker.la \
|
$(top_builddir)/src/gallium/state_trackers/vdpau/libvdpautracker.la \
|
||||||
|
$(top_builddir)/src/gallium/auxiliary/libgalliumvlwinsys.la \
|
||||||
$(top_builddir)/src/gallium/auxiliary/libgalliumvl.la \
|
$(top_builddir)/src/gallium/auxiliary/libgalliumvl.la \
|
||||||
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
|
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
|
||||||
$(top_builddir)/src/util/libmesautil.la \
|
$(top_builddir)/src/util/libmesautil.la \
|
||||||
|
@@ -24,6 +24,7 @@ endif # HAVE_LD_VERSION_SCRIPT
|
|||||||
|
|
||||||
libXvMCgallium_la_LIBADD = \
|
libXvMCgallium_la_LIBADD = \
|
||||||
$(top_builddir)/src/gallium/state_trackers/xvmc/libxvmctracker.la \
|
$(top_builddir)/src/gallium/state_trackers/xvmc/libxvmctracker.la \
|
||||||
|
$(top_builddir)/src/gallium/auxiliary/libgalliumvlwinsys.la \
|
||||||
$(top_builddir)/src/gallium/auxiliary/libgalliumvl.la \
|
$(top_builddir)/src/gallium/auxiliary/libgalliumvl.la \
|
||||||
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
|
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
|
||||||
$(top_builddir)/src/util/libmesautil.la \
|
$(top_builddir)/src/util/libmesautil.la \
|
||||||
|
@@ -240,7 +240,7 @@ nir/nir_opcodes.h: nir/nir_opcodes.py nir/nir_opcodes_h.py
|
|||||||
$(MKDIR_P) nir; \
|
$(MKDIR_P) nir; \
|
||||||
$(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/nir/nir_opcodes_h.py > $@
|
$(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/nir/nir_opcodes_h.py > $@
|
||||||
|
|
||||||
nir/nir.h: $(top_builddir)/src/glsl/nir/nir_opcodes.h
|
nir/nir.h: nir/nir_opcodes.h
|
||||||
|
|
||||||
nir/nir_opcodes.c: nir/nir_opcodes.py nir/nir_opcodes_c.py
|
nir/nir_opcodes.c: nir/nir_opcodes.py nir/nir_opcodes_c.py
|
||||||
$(MKDIR_P) nir; \
|
$(MKDIR_P) nir; \
|
||||||
|
@@ -21,6 +21,7 @@ NIR_FILES = \
|
|||||||
nir/glsl_to_nir.h \
|
nir/glsl_to_nir.h \
|
||||||
nir/nir.c \
|
nir/nir.c \
|
||||||
nir/nir.h \
|
nir/nir.h \
|
||||||
|
nir/nir_constant_expressions.h \
|
||||||
nir/nir_dominance.c \
|
nir/nir_dominance.c \
|
||||||
nir/nir_from_ssa.c \
|
nir/nir_from_ssa.c \
|
||||||
nir/nir_intrinsics.c \
|
nir/nir_intrinsics.c \
|
||||||
|
@@ -3,6 +3,7 @@ EXTRA_DIST = RELEASE_NOTES
|
|||||||
noinst_LTLIBRARIES = libappleglx.la
|
noinst_LTLIBRARIES = libappleglx.la
|
||||||
|
|
||||||
AM_CFLAGS = \
|
AM_CFLAGS = \
|
||||||
|
-I$(top_srcdir)/src \
|
||||||
-I$(top_srcdir)/include \
|
-I$(top_srcdir)/include \
|
||||||
-I$(top_srcdir)/src/glx \
|
-I$(top_srcdir)/src/glx \
|
||||||
-I$(top_srcdir)/src/mesa \
|
-I$(top_srcdir)/src/mesa \
|
||||||
|
@@ -221,7 +221,10 @@ DRI_glXUseXFont(struct glx_context *CC, Font font, int first, int count, int lis
|
|||||||
XGCValues values;
|
XGCValues values;
|
||||||
unsigned long valuemask;
|
unsigned long valuemask;
|
||||||
XFontStruct *fs;
|
XFontStruct *fs;
|
||||||
|
|
||||||
|
#if !defined(GLX_USE_APPLEGL)
|
||||||
__GLXDRIdrawable *glxdraw;
|
__GLXDRIdrawable *glxdraw;
|
||||||
|
#endif
|
||||||
|
|
||||||
GLint swapbytes, lsbfirst, rowlength;
|
GLint swapbytes, lsbfirst, rowlength;
|
||||||
GLint skiprows, skippixels, alignment;
|
GLint skiprows, skippixels, alignment;
|
||||||
@@ -234,9 +237,11 @@ DRI_glXUseXFont(struct glx_context *CC, Font font, int first, int count, int lis
|
|||||||
dpy = CC->currentDpy;
|
dpy = CC->currentDpy;
|
||||||
win = CC->currentDrawable;
|
win = CC->currentDrawable;
|
||||||
|
|
||||||
|
#if !defined(GLX_USE_APPLEGL)
|
||||||
glxdraw = GetGLXDRIDrawable(CC->currentDpy, CC->currentDrawable);
|
glxdraw = GetGLXDRIDrawable(CC->currentDpy, CC->currentDrawable);
|
||||||
if (glxdraw)
|
if (glxdraw)
|
||||||
win = glxdraw->xDrawable;
|
win = glxdraw->xDrawable;
|
||||||
|
#endif
|
||||||
|
|
||||||
fs = XQueryFont(dpy, font);
|
fs = XQueryFont(dpy, font);
|
||||||
if (!fs) {
|
if (!fs) {
|
||||||
|
Reference in New Issue
Block a user