summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
Commit message (Collapse)AuthorAgeFilesLines
* use char* instead of GLubyte* in i915_program_error() to silence warningsBrian Paul2005-09-012-2/+2
|
* use proper datatypes to silence a bunch of warningsBrian Paul2005-09-011-4/+3
|
* added a few more fields to help with DRI driversBrian Paul2005-09-012-0/+18
|
* enable GL_ARB_texture_env_crossbar on r200, separate the enable bits for ↵Roland Scheidegger2005-08-315-80/+361
| | | | texture sampling and texture environment, optimize away texture sampling for units if the result is not used, always emit the env instructions in-order and try to eliminate GL_REPLACE env instructions.
* reverse a bogus patchAlan Hourihane2005-08-311-2/+1
|
* remove redundant ctx->Driver fallback assignments that were already done in ↵Brian Paul2005-08-311-16/+2
| | | | _mesa_init_driver_functions()
* fix a cast/assignment warningBrian Paul2005-08-311-1/+1
|
* silence fprintf and casting warningsBrian Paul2005-08-301-3/+3
|
* added some parenthesis to silence warningsBrian Paul2005-08-301-2/+2
|
* drmUnmap correct sizeAlan Hourihane2005-08-301-1/+1
|
* move via_dri.h to serverAlan Hourihane2005-08-302-3/+0
|
* define Bool for solo buildsAlan Hourihane2005-08-302-15/+5
|
* Fixes from https://bugs.freedesktop.org/attachment.cgi?id=3077Alan Hourihane2005-08-302-3/+4
|
* Implement GL_ARB_texture_env_combine, GL_EXT_texture_env_combine, andIan Romanick2005-08-294-650/+595
| | | | | GL_ARB_texture_env_crossbar for i810. This passes both demos/texenv and all of glean's texCombine tests.
* remove drmAddressAlan Hourihane2005-08-291-1/+0
|
* remove stray references to ctx->Depth.OcclusionTestBrian Paul2005-08-255-9/+4
|
* Fix texture format selection. ChooseTextureFormat is supposed to select theIan Romanick2005-08-252-44/+35
| | | | | | | | | | | | | | | | hardware format of the texture, and SetTexImages is supposed to use the format selected by ChooseTextureFormat. However, both routines were making their choices based on the texture's BaseFormat. This is wrong. ChooseTextureFormat uses BaseFormat and SetTexImages uses TexFormat->MesaFormat. Once SetTexImages was fixed to use the right format values, ChooseTextureFormat was cleaned up. It now uses the few available texture formats supported by the i810 in a smarter way. This should improve the quality of LUMINANCE, LUMINANCE_ALPHA, and INTENSITY textures. I tested this by cycling through all the texture formats in demos/texenv and tests/yuvsquare.
* removed GL_HP_occlusion_test extensionBrian Paul2005-08-252-96/+0
|
* Attempt to fix the issue reported by Alan Grimes with DRM_RADEON_TEXTUREEric Anholt2005-08-253-3/+3
| | | | | | | | erroring out when it shouldn't. The errno could be changed by usleep() between the ioctl call and the loop check, if a signal was received. This could cause an EAGAIN return from the DRM_RADEON_TEXTURE ioctl to not loop again. Instead of checking errno, check thevalue of ret itself, since it is a saved (and sign-flipped) copy of errno from the ioctl call.
* Convert libGL and DRI drivers to require libdrm.Adam Jackson2005-08-191-3/+2
| | | | | | libdrm can be had from: http://people.freedesktop.org/~ajax/libdrm/
* Commit missing piece from Egbert's 32/64 bit patchesAlan Hourihane2005-08-191-25/+26
|
* Enable ARB_texture_compression. The code has been in place for a long time,Ian Romanick2005-08-192-0/+14
| | | | | | | but, for whatever reason, the extension wasn't enabled. Add some comments to i810ChooseTextureFormat. There's some strangeness with i810 texture formats.
* Add support for NV_blend_square. This was tested withIan Romanick2005-08-182-6/+19
| | | | progs/tests/blendsquare.
* Make sure extension entry point offsets are properly initialized. This isIan Romanick2005-08-182-1/+4
| | | | | primarilly needed to support functions that are internally implemented using extension entry points (e.g., glBlendFunc uses glBlendFuncSeparate).
* Don't try to update hardware texture fields if there is no hardware texture.Ian Romanick2005-08-182-24/+28
| | | | | | This can happen when all the texture enables for a texture unit are disabled. This fixes bugzilla #3195.
* Make the i810 driver use driGetRendererString like all the other drivers.Ian Romanick2005-08-181-2/+19
| | | | | The GL_RENDERER string now accurately contains the chip name. This was only tested on a "plain" i810 (PCI ID 8086:7121).
* Add Egberts fixes for 64bit architecturesAlan Hourihane2005-08-1527-36/+107
| | | | | | Add additional checks for the *DRIRec info structure passed in from the device driver. This ensures that things fallback to indirect rendering if the DDX driver has had modifications (i.e. removal of the drmAddress field).
* Add a check which compares the passed in size of the DDX driver private DRIAlan Hourihane2005-08-141-0/+4
| | | | | | structure to the 3D drivers view of it, and abort if they don't match. This traps the case with the drmAddress removal in the DDX driver.
* Enable support for EXT_stencil_wrap. The code was already there, but theIan Romanick2005-08-133-125/+37
| | | | | | extension wasn't enabled. I have verified its correct function with Mesa's stencil_wrap test. It is enabled on both Savage4 and Savage3D. Since Savage3D uses a software fallback for *all* stencil operations, this is safe.
* Remove support for the R200_NO_VTXFMT environment variable. Instead useIan Romanick2005-08-111-2/+3
| | | | 'tcl_mode=1'. This fixes bugzilla #3972.
* Make ffb driver build on x86-64. The fix is two fold. First, use theIan Romanick2005-08-111-3/+7
| | | | | | | proper DRM_CAS_RESULT to declare the variable used to store the result of DRM_CAS. Second, only use the "real" versions of LOCK_HARDWARE and UNLOCK_HARDWARE on SPARC. That's the only platform where the hardware can really exist.
* Mesa uses the glVertexAttrib*NV functions to implement fixed-functionIan Romanick2005-08-101-2/+5
| | | | | | | | | | attributes in display lists. If a driver doesn't add entry points for GL_NV_vertex_program, it will explode. This patch adds GL_NV_vertex_program to the list of default extensions whose entry points are added by driInitExtensions. Thanks go to Roland Scheidegger for tracking the problem down and suggesting the fix.
* Since glcontextmodes.[ch] are no longer used in the DRI drivers, removed theIan Romanick2005-08-082-6/+6
| | | | IN_DRI_DRIVER cruft. This was suggested by George Fufutos.
* fix up color tiling in miniglx radeon server codeDave Airlie2005-08-081-15/+34
|
* Remove platform specific bits from radeon_egl.cJon Smirl2005-08-081-2/+0
|
* Dike out the linux-specific EGL bits unless it's a linux build.Eric Anholt2005-08-081-1/+5
|
* Enable EGL support in 'linux-dri' configJon Smirl2005-08-071-5/+7
|
* Fix card_extensions by following corresponding r200 code.Vladimir Dergachev2005-08-061-50/+12
| | | | | Fix suggested by Ian Romanick. R300 driver now works without segfault.
* Fixes bugzillla #812.Ian Romanick2005-08-051-8/+0
| | | | | | | The weak version of _glapi_DispatchTSD was removed from dri_util.c. As stated in the bug report, this was only needed to support versions of libGL that did not have this symbol. Versions of libGL without this symbol are no longer supported at all, so it is totally irrelevant.
* remove the drmAddressAlan Hourihane2005-08-051-1/+0
|
* Fix recent problems with display lists and other parts of the code.Ian Romanick2005-08-051-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | CALL_by_offset, SET_by_offset, and GET_by_offset all had various problems. The core issue is that parts of the device-independent code in Mesa assumes that all functions have slots in the dispatch table. This is especially true in the display list code. It will merrilly try to set dispatch pointers for glVertexAttrib1fARB even if GL_ARB_vertex_program is not supported. When the GET/SET/CALL macros are invoked, they would read a 0 from the remap table. The problem is that 0 is the dispatch offset for glNewList! One change is that the remap table is now initialized to be full of -1 values. In addtion, all of the *_by_offset marcos misbehave in an obvious way if the specified offset is -1. SET_by_offset will do nothing, GET_by_offset will return NULL, and CALL_by_offset, since it uses GET_by_offset, will segfault. I also had to add GL_EXT_blend_func_separate to the list of default extensions in all_mesa_extensions (src/mesa/drivers/dri/common/utils.c). Even though many drivers do not export this extension, glBlendFunc is internally implemented by calling glBlendFuncSeparate. Without this addition, glBlendFunc stopped working on drivers (such as mga) that do not export GL_EXT_blend_func_separate. There are still a few assertions / crashes in GL_ARB_vertex_program tests, but I don't think that these are related to any of my changes.
* More EGL prep. No impact on anything outside of EGLJon Smirl2005-08-054-10/+19
|
* New files for radeon egl driver.Jon Smirl2005-08-041-0/+980
| | | | Still a work in progress.
* Add color tiling support to miniglx for radeonDave Airlie2005-08-033-2/+81
| | | | (Stephane Marchesin + Dave Airlie)
* Leave the AGP_BASE code in. It is pointless to bump the interfaceJon Smirl2005-07-291-0/+4
| | | | for X on a miniglx fix. It can be removed later.
* Remove OUTREG(RADEON_AGP_BASE, info->ringHandle); from DRI driverJon Smirl2005-07-291-4/+0
| | | | Code is already in DRM driver to do this.
* Commit Ian's fixes from Bug 3877Jon Smirl2005-07-292-4/+4
| | | | | I have tested these on miniglx and they seem to be working. I'm sure Dave will give them a better test.
* Fix a == vs !- typo for glx_enable_extensionJon Smirl2005-07-298-9/+9
|
* Use the routines supplied in the __DRIinterfaceMethods structure to create aIan Romanick2005-07-283-6/+3
| | | | | destroy __GLcontextModes structures. This eliminates the need for DRI drivers to ever link with glcontextmodes.c.
* glxEnableExtension is a platform-specific function exported by the loader.Ian Romanick2005-07-289-85/+66
| | | | Therefore, drivers should not require it to run.