summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri
AgeCommit message (Collapse)Author
2010-02-22intel: assert that we do not overflow the batch buffer.Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-02-22i915: Fix logic !gen >= 3Chris Wilson
The effect of this was that all objects were aligned to 128 bytes on all generations, rather than just gen2. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-02-22i915: Remove superfluous MI_NOOP from vertex emissionChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-02-22intel: Check that we have a bufmgr or bail out when initializing the context.Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-02-20radeon: Silence compiler format warning.Vinson Lee
2010-02-20gamma: Silence uninitialized variable warnings.Vinson Lee
2010-02-20gamma: Add missing headers.Vinson Lee
2010-02-20gamma: Remove unnecessary header.Vinson Lee
2010-02-20intel: Silence compiler format warnings.Vinson Lee
2010-02-19intel: Set buffer stamp before getting new buffersKristian Høgsberg
This way, if we get an invalidate as we update the buffers, we don't clobber the drawable stamp and ignore the invalidate. Pointed-out-by: Francisco Jerez
2010-02-19Drop macro wrappers for the aligned memory functionsKristian Høgsberg
2010-02-19Replace the _mesa_*printf() wrappers with the plain libc versionsKristian Høgsberg
2010-02-19Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg
2010-02-19mesa: replace _mesa_bzero() with memset()Brian Paul
2010-02-19mesa: replace old MEMSET macro with memsetBrian Paul
2010-02-19mesa: replace old MEMCPY macro with memcpyBrian Paul
2010-02-19Remove _mesa_memcmp in favor of plain memcmp.Kenneth Graunke
This may break the SUNOS4 build, but it's no longer relevant.
2010-02-19Remove _mesa_memset in favor of plain memset.Kenneth Graunke
This may break the SUNOS4 build, but it's no longer relevant.
2010-02-19Remove _mesa_memcpy in favor of plain memcpy.Kenneth Graunke
This may break the SUNOS4 build, but it's no longer relevant.
2010-02-19gamma: s#colormac.h#main/colormac.h#Vinson Lee
2010-02-19gamma: s/gammacontext.h/gamma_context.h/Vinson Lee
2010-02-18i915: update render buffers at prepare_render timeJesse Barnes
We need to do this before we emit any state dependent on the current render buffers.
2010-02-18intel: Include main/hash.h using "" instead of <>Kristian Høgsberg
2010-02-17intel: Implement the DRI2 invalidate function properlyKristian Høgsberg
This uses a stamp mechanisms to mark the DRI drawable as invalid. Instead of immediately updating the buffers we just bump the drawable stamp and call out to DRI2GetBuffers "later". "Later" used to be at LOCK_HARDWARE time, and this patch brings back callouts at the points where we used to call LOCK_HARDWARE. A new function, intel_prepare_render(), is called where we used to call LOCK_HARDWARE, and if the buffers are invalid, we call out to DRI2GetBuffers there. This lets us invalidate buffers only when notified instead of on every glViewport() call. If the loader calls the DRI invalidate entrypoint, we disable viewport triggered buffer invalidation. Additionally, we can clean up the old viewport mechanism a bit, since we can just invalidate the buffers and not worry about reentrancy and whatnot.
2010-02-17dri/nouveau: Some multithreaded rendering fixes.Francisco Jerez
2010-02-17nouveau: fix legacy dri driver buildJohannes Obermayr
2010-02-16dri/nouveau: Use event driven buffer validation.Francisco Jerez
2010-02-16dri2: Event driven buffer validation.Francisco Jerez
When a buffer invalidation event is received from the X server, the "invalidate" hook of the DRI2 flush extension is executed: A generic implementation (dri2InvalidateDrawable) is provided that just bumps the "pStamp" sequence number in __DRIdrawableRec. For old servers not supporting buffer invalidation events, the invalidate hook will be called before flushing the fake front/back buffer (that's typically once per frame -- not a lot worse than the situation we were in before). No effort has been made on preserving backwards compatibility with version 2 of the flush extension, but I think it's acceptable because AFAIK no released stack is making use of it. Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
2010-02-16dri2: Allocate cliprect as part of the __DRIdrawableRecKristian Høgsberg
2010-02-14r600: use new program cloning functionsBrian Paul
2010-02-14r300: use new program cloning functionsBrian Paul
2010-02-14r600: Silence uninitialized variable warnings.Vinson Lee
2010-02-14r300: Silence uninitialized variable warning.Vinson Lee
2010-02-14r600: Silence uninitialized variable warning.Vinson Lee
2010-02-12i965: Remove unnecessary headers.Vinson Lee
2010-02-12dri: Remove unnecessary headers.Vinson Lee
2010-02-12intel: Remove unused variable.Vinson Lee
2010-02-12intel: Avoid dri_bo_flink() in intel_update_renderbuffers()Kristian Høgsberg
Now that we track the global name in struct intel_region, we can just look it up there.
2010-02-12intel: Track named regions and make sure we only have one region per named boKristian Høgsberg
2010-02-12dri: Store the loader private passed in at dri context creationKristian Høgsberg
We just threw it away before, but we haven't had a use for it yet.
2010-02-12Revert "r600c: substract vbo offset to vbo size"Jerome Glisse
This reverts commit 325614a882f5371da512536e07c443a172ffb87c. Ok this was already fixed this commit actualy broke things
2010-02-12r600c: substract vbo offset to vbo sizeJerome Glisse
To avoid kernel complaining and to set proper boundary on vbo, substract the vbo offset to the vbo size.
2010-02-12r600: be more exact in vb size calculationAndre Maasikas
to make kernel cs checker happier, last attribs don't need full stride of space. Calculate as count-1*stride + size of attrib
2010-02-12r600: support GL_SHORT attributesAndre Maasikas
normalized seems to work with this setting.
2010-02-11i915: Remove always-true irq_active struct intel_screen fieldKristian Høgsberg
2010-02-11i915: Remove a few DRI1 era struct intel_screen fieldsKristian Høgsberg
2010-02-11i915: Drop intelScreenPrivate typedef and just call it struct intel_screenKristian Høgsberg
2010-02-11i915: Remove unused intelRegion structKristian Høgsberg
Phew, sure is nice to only have one struct called intel region.
2010-02-11i915: Remove left-over drmUnmap()Kristian Høgsberg
2010-02-10ffb: Fix build.Vinson Lee