aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/sis/sis_context.c
Commit message (Collapse)AuthorAgeFilesLines
* enable ARB_vertex_buffer_object for more dri driversRoland Scheidegger2007-03-131-0/+2
| | | | | | | ARB_vertex_buffer_object looks like a useful extension even for old chips. The drivers should not need any code to be able to use this extension since they just use mesa's vbo code anyway. Newly enabled for i810, mach64, mga, r128, radeon, savage, sis and unichrome.
* switch remaining drivers over to vboKeith Whitwell2006-10-311-3/+3
|
* The SiS and Unichrome drivers assume that the handle to theThomas Hellström2006-07-101-1/+1
| | | | AGP map is equivalent to the AGP physical address. Fix this.
* Add disabled support for GL_EXT_fog_coord. While it seems correct to me, it'sEric Anholt2005-10-261-0/+2
| | | | | | | | not respecting the coords (or perhaps interpreting them differently?) in my testing. However, in the process it led to a fix of a secondary color handling issue where it would be taken from the wrong offset, I believe, based off of reading the r200 driver. Also add a minor tweak to save time in the fog-but-not-specular case.
* Initial add of some (disabled) SiS 6326 drawing code integrated from Alan Cox'sEric Anholt2005-10-251-12/+181
| | | | | | | | last drop I saw, which was in turn based on a code drop of mine. Texturing, culling, and several extensions are unimplemented, and some features could probably be improved. It's untested, but there don't appear to be regressions on the 300-series code, so I'd like to get these bits in now so that it can be worked on as not a huge diff.
* Cut a bunch of code by not trying to precompute the blit commands and insteadEric Anholt2005-10-241-4/+0
| | | | | just do it per blit. No noticable performance difference (or behavior difference, in my tests), and a significant difference in sanity.
* Fix and enable GL_MESA_ycbcr_texture. Looks fine with yuvrect. I'm slightlyEric Anholt2005-10-241-1/+1
| | | | | concerned that TEXEL_YUV422 looks like TEXEL_YVU422 and TEXEL_VUY422 looks like TEXEL_VYU422 in yuvrect, but I'm happy enough for now.
* Add support for GL_EXT_secondary_color, tested with seccolor test.Eric Anholt2005-10-241-0/+2
|
* - Add a few more hardware internal formats that are supported. Some remainingEric Anholt2005-10-241-0/+4
| | | | | | | | ones require custom texstore, so they aren't done yet. - Add YCBCR support commented out, since the yuvsquare test didn't work with just the bits I've added. - Add the no-compression GL_ARB_texture_compression support. - Add the driconf texture depth option and try to respect it.
* Add support for GL_ARB_texture_border_clamp and GL_ARB_texture_mirrored_repeat,Eric Anholt2005-10-241-0/+2
| | | | | | | tested using texwrap, fixing the sourcing of border constant values (use the bytes, not the floats!). Remove the fallback on GL_CLAMP_TO_EDGE, which acts properly, and add a note to GL_CLAMP about nonconformance (whcih is what the fallback for CLAMP_TO_EDGE was probably targeting).
* Add support for GL_EXT_stencil_wrap by guessing that the skip of two values inEric Anholt2005-10-241-0/+1
| | | | | | | | the register header was meaningful. It turns out those were the proper values for the plain INCR/DECR ops, while what we were using as INCR/DECR were the _WRAP versions. Tested with stencil_wrap (didn't expose normal/_WRAP swapping) and stencilwrap (exposed it nicely) tests. Props to idr for poking me about adding this.
* Make SiS a little more like other drivers: Add SIS_DEBUG (only option beingEric Anholt2005-10-191-0/+19
| | | | | "fall" so far) and make the fallback_force option be no_rast like other drivers. Incidentally, makes no_rast not crash (though it still fails to render).
* Remove some long-dead code.Eric Anholt2005-10-191-4/+0
|
* Bug #4615: Fix the SiS driver for the renderbuffer changes. Previously, allEric Anholt2005-10-191-6/+18
| | | | | | | drirenderbuffers pointed at screen offset 0 and NULL. Instead, set up the front buffer at startup but leave the others for later, since sis allocates them on demand rather than using the static method of the other non-sis-descendent drivers. Some basic apps work, but fallbacks may be broken still.
* Fix a missed merge for idr's dispatch changes: failure to do driInitExtensionsEric Anholt2005-10-181-1/+1
| | | | | in __driCreateNewScreen_20050727 resulted in crashing in dispatch. Rendering remains broken.
* Major rip-up of internal function insertion interface. The oldmesa_6_3_1Ian Romanick2005-07-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | _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)
* Replace add_newer_entrypoints (src/mesa/main/context.c) withIan Romanick2005-06-301-5/+9
| | | | | | | | | | | | | | | device-specific code. A new Python script (src/mesa/glapi/extension_helper.py) generates a list of all entry-points for all known extensions. Each driver the selects only the extensions that it needs and enables the via either driInitExtensions or driInitSingleExtension. This code has been compile-tested on a drivers, but has only been run-tested on mga and i915 (on i830 hardware). These changes were discussed at length on the mesa3d-dev mailing list. http://marc.theaimsgroup.com/?t=111947074700001&r=1&w=2
* Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul2005-05-041-4/+4
| | | | | | | Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
* Remove _mesa_ResizeBuffersMESA() call from _mesa_set_viewport().Brian Paul2004-11-271-5/+0
| | | | | | | | Now, the driver's Viewport routine should call _mesa_ResizeBuffersMESA() if necessary. Cleaned up code related to GLframebuffer width/height initialization. Set initial viewport/scissor params in _mesa_make_current2(), instead of in the drivers' MakeCurrent functions.
* Add support for NV_blend_square, and print errors if an unsupported blendEric Anholt2004-10-081-0/+1
| | | | function is used.
* * Convert to use t_vertex.c instead of sis_vb.[ch]Eric Anholt2004-06-081-13/+26
| | | | | | | | | | | | * Don't dispatch vertices directly to MMIO; queue them up in dma-like buffers first. This makes things more uniform between AGP and MMIO paths, cleans up some locking ugliness, and makes the driver look more like other drivers. * Don't use the AGP Cmd buffer provided by the server. Instead allocate one in the client, which avoids the need for lots of synchronization stuff. * Mark some MMIO accesses volatile that should have been. * Disable the AGP submission path by default (agp_disable=true) due to unresolved issues in the new code. The old code had its own (serious) errors with AGP, so this is not really a step backwards.
* Clean up some warnings by making sis_fatal_error a macro, and let it take anEric Anholt2004-05-241-9/+1
| | | | argument of a message to print. Make some assert(0)s use sis_fatal_error.
* Add missing sisInitDriverFuncs call. Fixes segfault.Eric Anholt2004-05-241-0/+1
|
* added _tnl_allow_vertex/pixel_fog() callsBrian Paul2004-02-261-0/+2
|
* Before calling _mesa_create_context(), initialize a dd_function_table structBrian Paul2004-01-201-6/+14
| | | | | | | | | | by calling _mesa_init_driver_functions() and then plugging in the driver- specific functions. In particular, make sure ctx->Driver.NewTextureObject points to the appropriate driver function so that _all_ texture objects are augmented with the driver-specific data. Put in a bunch of assertions in the texture-related driver functions that texObj->DriverData is valid. Remove old dead code in near future.
* applied Felix's patch for configuration systemBrian Paul2003-12-121-15/+0
|
* Remove usleeps from sis driver. We probably aren't doing anyone a serviceEric Anholt2003-12-091-8/+6
| | | | | sleeping with the lock held. Also, rename cEngineState to engineState since it isn't a char any more.
* merge latest DRI sis driver changes from the DRI trunkAlan Hourihane2003-12-041-30/+46
|
* add the SiS driver - no kernel driver yetAlan Hourihane2003-09-301-0/+508
(build tested, but not physically tested)