summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/dri/dri_drawable.c
AgeCommit message (Collapse)Author
2009-10-17gallium: Permit surface_copy and surface_fill to be NULL.Corbin Simpson
Uf. Lots of files touched. Would people with working vega, xorg, dri1, etc. please make sure you are not broken, and fix yourself up if you are. There were only two or three places where the code did not have painful fallbacks, so I would advise st maintainers to find less painful workarounds, or consider overhauling util_surface_copy and util_surface_fill. Per ymanton, darktama, and Dr_Jakob's suggestions, clear has been left as-is. I will not add PIPE_CAP_BLITTER unless it is deemed necessary.
2009-10-07st/dri: Add missing front buffer case in dri_get_buffers().Michel Dänzer
This seems to help for compiz at least with some drivers. Also add an assert(0) to catch unhandled cases in the future.
2009-10-05st/dri: avoid segfault if we can't get a pixmap's buffersBen Skeggs
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2009-10-05st/dri: no need to request fake front buffer, only handle it being returnedBen Skeggs
The previous behaviour was incorrect, and resulted in EXT_tfp being broken for DDX drivers that implement the correct behaviour (intel/radeon/nouveau). In the cases where a fake front buffer is required, the X server will return one when requesting __DRI_BUFFER_FRONT_LEFT. The Xorg state tracker (aka modesetting_drv) is likely broken now until it's modified to match the other drivers. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2009-09-02st/dri: Slight consolidation of DRI2 buffer handling.Michel Dänzer
Always use / assume a combined depth/stencil buffer. Also update drawable formats from surfaces returned by the driver.
2009-08-28drm_api: Operate on textures instead of buffersJakob Bornecrantz
Most use cases just got the buffer from the texture and then called into one of the get_handle functions. Also with this patch it would be easier to move to a generic function for getting handles from textures and textures from handles, that is exposed via the screen.
2009-08-28st/dri: Fix some warningsJakob Bornecrantz
2009-08-28Revert "st/xorg/dri: Pass texture formats via the DRI2 protocol flags."Jakob Bornecrantz
This reverts commit a33e9ea3b9b7ac98d6e9bc385bbbe7eac2eb73d0. As this change breaks both radeon and nouveau
2009-08-27st/dri: Make sure the front left renderbuffer is there for texture-from-pixmap.Michel Dänzer
2009-08-27st/dri: Only ask for fake front buffer for single buffer visuals by default.Michel Dänzer
2009-08-27st/xorg/dri: Pass texture formats via the DRI2 protocol flags.Michel Dänzer
No need to guess.
2009-08-26st/dri: Add some debug codeJakob Bornecrantz
2009-08-26st/dri: Redo config generationJakob Bornecrantz
2009-08-22st/dri: Remove some debug printsJakob Bornecrantz
2009-08-22st/dri: Find out if the drawable is a pixmapJakob Bornecrantz
Part of this code is disabled since no performance gains where detected with it enabled. This code only detects if it is a pixmap that it is rendering to on the st/xorg DDX since it sets the fake front to the same handle as front.
2009-08-22st/dri: Fix frontbuffer rendering with DRI2Jakob Bornecrantz
2009-08-13st/dri: Add support for GLX_EXT_texture_from_pixmap with direct rendering.Michel Dänzer
2009-06-30drm/st: Return drm_api struct from a functionJakob Bornecrantz
2009-06-17gallium dri st: Probe the driver for supported surface formats.Thomas Hellstrom
This is done when constructing the fbconfigs, and the result is saved for window system framebuffer creation. Note: For dri2 the server needs to have an identical format selection logic. Otherwise the dri state-tracker and the xorg driver (state-tracker) will disagree on which format to use for the attachments. Some more work is needed in this area. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2009-06-11dri st: Don't require the PIPE_TEXTURE_USAGE_RENDER_TARGET property for ↵Thomas Hellstrom
depth- and stencil renderbuffers. Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-05-18st/dri: Only create new textures if drawable has changedJakob Bornecrantz
2009-04-28gallium dri st: Use st_get_current() instead of GET_CURRENT_CONTEXT()Thomas Hellstrom
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-04-28gallium dri st: Fix up some comments and minor bugs.Thomas Hellstrom
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-04-28gallium: indent and cleanfile the dri state-tracker.Thomas Hellstrom
2009-04-28gallium: Update the dri2 state tracker to support dri1.Thomas Hellstrom
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-04-28gallium: Move the dri2 state tracker since we're about to extend it to dri1.Thomas Hellstrom
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>