summaryrefslogtreecommitdiff
path: root/src/glx
AgeCommit message (Collapse)Author
2006-04-11Add attrib_list to glXBindTexImageEXTDavid Reveman
2006-04-11Fix CreateDrawableDavid Reveman
2006-04-07make miniglx use libdrm properlyDave Airlie
2006-04-07Coverity #943: Avoid a NULL chase.Adam Jackson
2006-04-03setup to use pci access, comment out size bumps,Dave Airlie
sest xres from real width, use new -1 ddx version
2006-04-03do a drm lock/unlock sequence after the client closeDave Airlie
2006-04-03add width to struct for width != virtual widthDave Airlie
2006-04-03make miniglx use libdrm and libpciaccessDave Airlie
2006-04-03Coverity #468: Fill in the rest of the error_list to match the error codesAdam Jackson
defined in glxproto.h. Avoids reading semi-random memory (and probably crashing) when calling __glXErrorString().
2006-03-31Dave Reveman's patch for GLX_MESA_copy_sub_buffer supportBrian Paul
2006-03-14Set always_array=true for glGenProgramsNV (Dave Reveman)Brian Paul
2006-03-09s/GLint/int/, to fit GLX conventionsBrian Paul
2006-03-09Instead of adding extra flags to DEFINES with +=, define EXTRA_DEFINES instead.Brian Paul
This eliminates a bunch of duplication in the compilation commmands.
2006-02-24EXT_framebuffer_object (Dave Reveman)Brian Paul
2006-02-15remove stray 'foo' lineBrian Paul
2006-02-14replace size_t * w/ unsigned int * (Jurg Billeter)Brian Paul
2006-02-07David Reveman's GLX_EXT_texture_from_pixmap extension patchBrian Paul
2005-12-02Test sizeof(drm_handle_t) instead of LONG64 when returning handlesBrian Paul
2005-11-30This is a major re-work of the __indirect_glInterleavedArrays routine. TheIan Romanick
big, ugly, error prone switch-statement is replaced with a compact table. I also added numerous comments, including a comment explaining how the format parameter is validated. Explicitly pass GL_FLOAT as the type in the cases where that is the only possible value (e.g., everywhere except the call to glColorPointer). Validate that stride is >= 0. Tested with all modes (including the two error modes) of progs/tests/interleave.c. Bug: #5001, #5058 Reviewed by: Brian Paul
2005-10-20restore FASTCALL stuffBrian Paul
2005-10-20fix bad loops in TransposeMatrix[fd]()Brian Paul
2005-10-20Disable the FASTCALL optimization because it still breaks server-side GLX.Brian Paul
2005-09-19s/unsigned long/drm_handle_t/ to get compilation of fb driver to workBrian Paul
2005-09-12use ASM_API variable, bug 4415Brian Paul
2005-08-31complete fix for miniglx startup issue since driver version checksDave Airlie
2005-08-26/dri/msgAdam Jackson
2005-08-26Fix the scripts for the cygwin & mingw changesAlan Hourihane
2005-08-25update for mingwAlan Hourihane
2005-08-24Fix Windows build problems.Alan Hourihane
GCC's visibility attribute is for ELF systems, so undef INTERNAL GCC's fastcall attribute interferes with __stdcall so undef FASTCALL
2005-08-19Convert libGL and DRI drivers to require libdrm.Adam Jackson
libdrm can be had from: http://people.freedesktop.org/~ajax/libdrm/
2005-08-19Fix a realloc problem with indirect vertex arrays. The actual head pointerIan Romanick
wasn't tracked and used for the realloc, so it tended to explode.
2005-08-11Remove the logic that determines at compile time whether or not HAVE_ALIASIan Romanick
should be defined. It was flawed on some platforms (e.g., Darwin & mingw). Instead, rely on the build system to define it on the compiler command line. This also reverts ajax's hand-edit to indirect_size.c. I'll fix that on the X.org side of things later today.
2005-08-11Makefile cleanups suggested by George Fufutos (bugzilla #3899).Ian Romanick
2005-08-11fix X #includes so they're relative to X11/ directory (bug 4047)Brian Paul
2005-08-10Remove _glapi_check_multithread from the interface exported by the loader toIan Romanick
the driver. The loader now takes care of this for the driver. Remove _glapi_DispatchTSD and give _glapi_Dispatch its semantic (i.e., having a NULL value means that the application is multithreaded and _glapi_get_dispatch must be called). Gut all of the dispatch override code. This removes _glapi_RealDispatch, _glapi_tls_RealDispatch, _glapi_begin_dispatch_override, _glapi_end_dispatch_override, and _glapi_get_override_dispatch. Remove _glapi_get_proc_address, _glapi_get_proc_name, _glapi_get_version, and _glapi_check_table from the loader / driver interface. Reviewed by: Brian Paul
2005-08-08fix miniglx setting virtual size of 832 for 800x600Dave Airlie
2005-08-05Fixes bugzilla #1730.Ian Romanick
Make sure that all the values used in the clean-up code are initialized at some point. It is still unclear to me as to why GCC does not complain. I suspect the problem may be due to the depth of if-statement nesting.
2005-08-05In order to create the set of available extensions, we have to know ifIan Romanick
direct-rendering is possible on a given screen. It is not possible to determine this by just looking at driDisplay.private in the display structure. However, it is possible to determine this by looking at driScreen.private in the screen structure. This field is only non-NULL if a DRI driver has been successfully loaded and bootstrapped. Once we get to that point, we know that direct-rendering is at least theoretically possible. This fixes bugzilla #2875.
2005-08-03Convert all instances of XTHREADS to USE_XTHREADS. This fixes one ofIan Romanick
serveral things that are broken when building on a system with X.org 7.0rc0 installed.
2005-08-03Add color tiling support to miniglx for radeonDave Airlie
(Stephane Marchesin + Dave Airlie)
2005-08-01Fix build problems related to finding Xthreads.h.Ian Romanick
2005-07-29Remove unused structures and data fields. These had been left in becauseIan Romanick
DRI drivers using the "old" interface relied on certain fields being at certain offsets. Removing the structures would break that. Now that the old interface is no longer supported, the dead data can finally die.
2005-07-29Add a new config called linux-indirect. This build the GLX libGL just likeIan Romanick
linux-dri, but it disables support for direct-rendering in it. This config mainly exists so that I can verify that changes to libGL haven't broken builds on non-DRI platforms.
2005-07-29Commit Ian's fixes from Bug 3877Jon Smirl
I have tested these on miniglx and they seem to be working. I'm sure Dave will give them a better test.
2005-07-28Major rip-up of internal function insertion interface. The oldIan Romanick
_glapi_add_entrypoint has been replaced by a new routine called _glapi_add_dispatch. This new routine dynamically assignes dispatch offsets to functions added. This allows IHVs to add support for extension functions that do not have assigned dispatch offsets. It also means that a driver has no idea what offset will be assigned to a function. The vast majority of the changes in this commit account for that. An additional table, driDispatchRemapTable, is added. Functions not in the Linux OpenGL ABI (i.e., anything not in GL 1.2 + ARB_multitexture) has a fixed offset in this new table. The entry in this table specifies the offset in of the function in the real dispatch table. The internal interface was also bumped from version 20050725 to 20050727. This has been tested with various programs in progs/demos on: radeon (Radeon Mobility M6) r128 (Rage 128 Pro) mga (G400)
2005-07-26Remove the last remnants of GLX_BUILT_IN_XMESA. This allows the removal ofIan Romanick
the evil, ugly GLX_PREFIX macro as well.
2005-07-26No, really, get rid of all the remaining references to DRI_USE_NEW_INTERFACE.Ian Romanick
A couple other remnants of the old interfaces hit the dust too. Thanks Jon. :)
2005-07-26Quote $(CC) and $(CXX) so that 'CC=ccache gcc' and 'CXX=ccache g++' willIan Romanick
work again.
2005-07-26Fixes the glXGetProcAddress portion of the interface. Most of the functionsIan Romanick
that are currently obtained via glXGetProcAddress and all of the XF86DRI functions are replaced with a funciton table. This table will be passed to __driCreateNewScreen. One of the functions in the table is getProcAddress. This allows some loaders to expose functionality not in all loaders. This will be immediatly used for glxEnableExtension (formerly known to drivers as __glXScrEnableExtension). libGL (and in the future libglx) expose this function so that drivers can enable GLX extensions. libEGL should exposed eglEnableExtension to enable EGL extensions. The same function cannot be used for both because the extensions have different names and (possibly) different semantics. Drivers can optionally use one, both, or neither. The key parts are in the __DRIinterfaceMethodsRec structure in dri_interface.h. A pointer to one of these structures is passed into __driCreateNewScreen. Because of this, the version of the API is bumped to 20050725. Since the previous version(s) were never in a release, their existance is erased. I was actually a little surprised by how much code this cuts from the drivers. A lot of glXGetProcAddress calls disappear, and a lot of version checks go with them. Nice. The one thing I'm not sure of is removing __glXInitialize. For some reason that function was in the glXGetProcAddress table, but *nothing* in the Mesa tree used it. Did something with DRI conf. use this function? It seems odd...
2005-07-25Added -linker option to mklib, used to specify a particular program forBrian Paul
linking, if relevant. Updated Makefiles to use -linker option instead of setting CC, CXX env vars.