Chia-I Wu
5b6ec5a553
st/dri: Add support for surfaceless current contexts.
Tested with Wayland.
před 15 roky
Thomas Hellstrom
8e630fad72
st/egl: Fix build for include files in nonstandard places
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
před 15 roky
Jakob Bornecrantz
f1600d3a97
scons: Unify state tracker SConscripts
před 15 roky
Jakob Bornecrantz
7e9f5eab4e
scons: Move dependancy checks to the main gallium scons file
před 15 roky
Jakob Bornecrantz
b4ac0adb75
scons: Detabify
Drivers scons files for a later time
před 15 roky
José Fonseca
d49dfe66cf
st/xorg: Detect libkms with scons too.
před 15 roky
José Fonseca
12376d8ea3
st/xorg: Add missing \n to error message.
před 15 roky
Brian Paul
b19b858060
egl/gdi: fix typo: xsurf->gsurf
před 15 roky
Chia-I Wu
3f7876d76f
st/egl: Use native_display_buffer for EGL_MESA_drm_image.
native_display_buffer is just a wrapper to resource_{from,get}_handle
for drm backend.
před 15 roky
Chia-I Wu
af977b5382
st/egl: Add native_display_buffer interface.
The interface is a wrapper to pipe_screen::resource_from_handle and
pipe_screen::resource_get_handle. A winsys handle is
platform-dependent.
před 15 roky
Chia-I Wu
a5f4338fc4
st/egl: Add extern "C" wrapper to native.h.
This allows a backend to be written in C++.
před 15 roky
Chia-I Wu
04ae53ca8a
st/egl: Add support for EGL_MATCH_NATIVE_PIXMAP.
Added for completeness. It makes sense to have such mechanism, but I am
not aware of any user of that..
před 15 roky
Chia-I Wu
b8cb14209a
st/egl: Add support for swap interval and swap behavior.
The value of EGL_MAX_SWAP_INTERVAL and whether
EGL_SWAP_BEHAVIOR_PRESERVED_BIT is set will depend on the native
backend used.
před 15 roky
Chia-I Wu
828d944fd6
st/egl: Remove flush_frontbuffer and swap_buffers.
They are deprecated by native_surface::present and there is no user of
them.
před 15 roky
Chia-I Wu
250d81da25
d3d1x: Use native_surface::present.
Replace native_surface::flush_frontbuffer and
native_surface::swap_buffers calls by native_surface::present calls.
před 15 roky
Chia-I Wu
0ae4b23c53
st/egl: Use native_surface::present callback.
Replace native_surface::flush_frontbuffer and
native_surface::swap_buffers calls by native_surface::present calls.
před 15 roky
Chia-I Wu
94bf657b23
st/egl: Add native_surface::present callback.
The callback presents the given attachment to the native engine. It
allows the swap behavior and interval to be controlled. It will replace
native_surface::flush_frontbuffer and native_surface::swap_buffers
shortly.
před 15 roky
Vinson Lee
93a7e6d94e
st/vega: Remove unnecessary headers.
před 15 roky
José Fonseca
583e41855b
scons: Disable python state tracker when swig is not present.
před 15 roky
José Fonseca
601498ae73
scons: Revamp how to specify targets to build.
Use scons target and dependency system instead of ad-hoc options.
Now is simply a matter of naming what to build. For example:
scons libgl-xlib
scons libgl-gdi
scons graw-progs
scons llvmpipe
and so on. And there is also the possibility of scepcified subdirs, e.g.
scons src/gallium/drivers
If nothing is specified then everything will be build.
There might be some rough corners over the next days. Please bare with me.
před 15 roky
Benjamin Franzke
6102683b19
st/egl image: multiply drm buf-stride with blocksize
[olv: formatted for 80-column wrapping]
před 15 roky
Chia-I Wu
6c13fdf60e
st/egl: Use resource reference count for egl_g3d_sync.
před 15 roky
Chia-I Wu
d19afc57fe
egl: Use reference counting to replace IsLinked or IsBound.
Remove all _egl<Res>IsLinked and _egl<Res>IsBound. Update
_eglBindContext and drivers to do reference counting.
před 15 roky
Chia-I Wu
662e098b56
st/egl: Fix native_mode refresh mode.
Define the unit to match _EGLMode's.
před 15 roky
Chia-I Wu
e32ac5b8a9
egl: Fix _eglModeLookup.
Internally a mode belongs to a screen. But functions like
eglGetModeAttribMESA treat a mode as a display resource: a mode can be
looked up without a screen. Considering how KMS works, it is better to
stick to the current implementation.
To properly support looking up a mode without a screen, this commit
assigns each mode (of all screens) a unique ID.
před 15 roky
Chia-I Wu
37213ceacc
egl: Minor changes to the _EGLScreen interface.
Make _eglInitScreen take a display and rename _eglAddScreen to
_eglLinkScreen. Remove unused functions.
před 15 roky
Chia-I Wu
8a6bdf3979
egl: Minor changes to the _EGLConfig interface.
Mainly to rename _eglAddConfig to _eglLinkConfig, along with a few clean
ups.
před 15 roky
Chia-I Wu
5664a98386
egl: Parse image attributes with _eglParseImageAttribList.
Avoid code duplications.
před 15 roky
Chia-I Wu
713c8734f4
egl: Move attributes in _EGLImage to _EGLImageAttribs.
The opaque nature of EGLImage implies that extensions almost always
define their own attributes. Move attributes in _EGLImage to
_EGLImageAttribs and add a helper function to parse attribute lists.
před 15 roky
Vinson Lee
a143b6d5d8
st/xorg: Fix memory leak on error path.
před 15 roky
Thomas Hellstrom
9e96b695b0
st/xorg: Fix compilation for Xservers >= 1.10
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
před 15 roky
Thomas Hellstrom
2ab7a8a3eb
st/xorg: Don't use deprecated x*alloc / xfree functions
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
před 15 roky
Thomas Hellstrom
0301c9ac62
st/xorg: Fix compilation errors for Xservers compiled without Composite
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
před 15 roky
Thomas Hellstrom
0d0a6e9096
st/xorg, xorg/vmwgfx: Be a bit more frendly towards cross-compiling environments
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
před 15 roky
Chia-I Wu
d6de1f44a0
st/egl: Do not finish a fence that is NULL.
i915g would dereference the NULL pointer.
před 15 roky
Chia-I Wu
c97c77d869
st/egl: Access _EGLConfig directly.
Drop the use of SET_CONFIG_ATTRIB. Fix the value of EGL_SAMPLE_BUFFERS
along the way.
před 15 roky
Kristian Høgsberg
f9995b3075
Drop GLcontext typedef and use struct gl_context instead
před 15 roky
Kristian Høgsberg
31aca27c08
Drop GLframebuffer typedef and just use struct gl_framebuffer
před 15 roky
Kristian Høgsberg
d3491e775f
Rename GLvisual and __GLcontextModes to struct gl_config
před 15 roky
Kristian Høgsberg
705e142dda
gl: Remove unused GLcontextModes fields
před 15 roky
Kristian Høgsberg
e3c1c5377c
Get rid of GL/internal/glcore.h
__GLcontextModes is always only used as an implementation internal struct
at this point and we shouldn't install glcore.h anymore. Anything that
needs __GLcontextModes should just include the struct in its headers files
directly.
před 15 roky
Thomas Hellstrom
893620e52e
st/xorg: Fix typo
Pointed out by Jakob Bornecrantz.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
před 15 roky
Brian Paul
0ad9d8b538
st/xlib: add some comments
před 15 roky
Thomas Hellstrom
b6b7ce84e5
st/xorg: Don't try to remove invalid fbs
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
před 15 roky
Thomas Hellstrom
bfd065c71e
st/xorg: Add a customizer option to get rid of annoying cursor update flicker
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
před 15 roky
Thomas Hellstrom
ec08047a80
st/xorg: Don't try to use option values before processing options
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
před 15 roky
Chia-I Wu
b2c0ef8b51
st/vega: Fix version check in context creation.
This fixes a regression since 4531356817
.
před 15 roky
Chia-I Wu
e2b51b7c5b
st/egl: Drop context argument from egl_g3d_get_egl_image.
Fix a regression since 17eace581d
.
před 15 roky
Nicolas Kaiser
218d973786
gallium/st: remove duplicated includes
Remove duplicated includes.
Signed-off-by: Brian Paul <brianp@vmware.com>
před 15 roky
Chia-I Wu
d63b2622f1
st/egl: Skip single-buffered configs in EGL.
Let DRI2 report single-buffered configs and skip them in EGL. This is
based on the patch by Luca Barbieri.
před 15 roky