summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/radeon/radeon_common_context.h
AgeCommit message (Collapse)Author
2011-02-12radeon: Remove setup of the old dri/ meta code, which is now unused.Eric Anholt
2010-10-13Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg
2010-10-13Rename GLvisual and __GLcontextModes to struct gl_configKristian Høgsberg
2010-08-20evergreen : initial support driver code.richard
2010-08-05r600: add span support for 2D tilingAlex Deucher
Requires tiling config ioctl support from the drm to use. kms only. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-08-02radeon: Add DRI2 flush extension support, so we synchronize properly.Mario Kleiner
When a DRI2 swap buffer is pending we need to make sure we have the flush extension so radeon doesn't resume rendering to or reading from the not yet blitted front buffer. This fixes: https://bugs.freedesktop.org/show_bug.cgi?id=28341 https://bugs.freedesktop.org/show_bug.cgi?id=28410 Signed-off-by: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
2010-08-02Revert "radeon: Add DRI2 flush extension to so we synchronize properly."Jerome Glisse
This reverts commit 8446f257b3e3ca4a3eb2c79bc357e46343e04e87.
2010-08-02radeon: Add DRI2 flush extension to so we synchronize properly.Mario Kleiner
When DRI2 swap buffer is pending (copy buffer not pageflipping) we need to make sure we have the flush extension so radeon doesn't resume rendering on the not yet blitted front buffer. Modified version of Jerome's patch to add flush extension in the correct place. This prepares a possible fix for: https://bugs.freedesktop.org/show_bug.cgi?id=28341 https://bugs.freedesktop.org/show_bug.cgi?id=28410 Signed-off-by: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
2010-03-09radeon/r200/r300/r600: add is_format_renderable functionMaciej Cencora
2010-03-03radeon/r200/r300/r600: add check_blit vtbl functionAlex Deucher
Check if the native blit formats are supported, if not, attempt to use an alternate format. Skip 3, >4 bpp as per comments from mcencora on irc. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-01-19radeon: add blit function to vtblMaciej Cencora
2010-01-04Remove leftover __DRI{screen,drawable,context}Private referencesKristian Høgsberg
As part of the DRI driver interface rewrite I merged __DRIscreenPrivate and __DRIscreen, and likewise for __DRIdrawablePrivate and __DRIcontextPrivate. I left typedefs in place though, to avoid renaming all the *Private use internal to the driver. That was probably a mistake, and it turns out a one-line find+sed combo can do the mass rename. Better late than never.
2009-12-17radeon: drop unused members of radeon_state.Dave Airlie
2009-12-05radeon: Only get DRI2 front buffer information for glXBindTexImageEXT.Michel Dänzer
2009-11-24radeon/r200/r300/r600: make bo mapping be explicitDave Airlie
This moves the bo mapping outside the DMA layer and makes it explicit, this should in theory make it simpler to split the clean up the dma/cmdbuf linkage that I created before that is broken. Tested on: r600, rv380 (tcl/no-tcl), rv200 (tcl/no-tcl) Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-14radeon: rework mipmap treeMaciej Cencora
2009-11-14radeon: use radeon_bo_is_referenced_by_cs for query objectsMaciej Cencora
2009-08-31radeon: Add support for indenting debug output.Pauli Nieminen
Indetion can be used to make it easier to read debug code when sections of debug output are indented.
2009-08-31r100: Use shared debug code.Pauli Nieminen
Converted r100 to use shared debug code with sed and fast compile check. New code has compability layer so old debugging code doesn't have to be changed all immidiatly.
2009-08-28r100/r200: Bring back old PolygonStripple for DRI1.Pauli Nieminen
DRI1 didn't have support for command buffer emit for stripple.
2009-08-27radeon/r200/r300: Fix swtcl prediction to work after primitie change.Pauli Nieminen
Swtcl calls flush everytime primitive changes so prediction has to made again after flushing.
2009-08-27radeon: fix max indx/vertex emission due to state checkerDave Airlie
2009-08-27radeon/r200/r300: Fix swtcl flushing not to invalidate dma region.Pauli Nieminen
We were check command buffer sizes too alte so allocated dma regions were freed before relocations so space checking failed.
2009-08-26r200: Add scissor to state atom list.Pauli Nieminen
Scissors are jsut one of states that we have to emit so it should be in state list
2009-08-19radeon: Fix dma buffer object pool to scale object sizes.Pauli Nieminen
This fixes problems when application is using large vertex arrays for drawing. Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-18radeon: Optimize memory handling for dma operations.Pauli Nieminen
We keep dma buffer objects in list untill they have been unused for many draw operations. Current limit of having 100 flushes is just guess for good performance/memory trade off. Moving WARN_ONCE macro to common context because it is used in multiple drivers. Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-18r300: OQ reworkDave Airlie
Move to common code base so radeon/r200 can add support for this. Make OQ start a state emitted like all normal state, and make no-tcl flushing work in proper places. Really need a generic post emit space reservation mechanism like max_state so we can reserve some space for the emit this code passes demos/arbocclude, piglit occlusion query and glean occlusion query with TCL and NO-TCL on my rv530.
2009-08-17radeon: remove RADEON_DEBUG_BO stuffAlex Deucher
This stuff was a vestige of the r600 bring up and now mostly serves to periodically break the build.
2009-08-17radeon: turn off bo debuggingDave Airlie
2009-08-12radeon: Add protection against recursive DRM locking.Pauli Nieminen
Reference counting protects DRM lock call from recursive locking that would cause hang. Code also adds optional debugging output for recursive call that is compiled only if NDEBUG is not defined. This code is not 100% thread safe because mesa doesn't include increment and test atomic operation. There is built-in gcc functions but they are only available from gcc 4.2.
2009-07-31radeon: Remove unused variable from context.Pauli Nieminen
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-29r600: fix texture pitch alignmentAlex Deucher
fixes texwrap
2009-07-28r600: implement texture border colorAlex Deucher
2009-07-15Merge branch 'master' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa ↵Alex Deucher
into r6xx-rewrite This builds, but I get an assertion in radeonGetLock() due to the drawable being null.
2009-07-15intel/radeon: add common metaops code.Dave Airlie
Move all the metaops to a dri_metaops file and port radeon/intel to use the new common meta ops code.
2009-07-14radeon: port more front fixes from intel.Dave Airlie
Port fixes to read buffer from front.
2009-07-12radeon: update clear code from Intel codebase.Dave Airlie
This updates some of the clear code from Intel gives a 5x clearspd perf for me here. played openarena also, not sure if the viewport changes broke anything,
2009-07-06R6xx/r7xx: first pass at texture supportAlex Deucher
texture bo setup isn't quite working yet
2009-07-02radeon/r200/r300: drop radeon renderbuffer private width/heightDave Airlie
half stealing the code without taking the intel regions
2009-06-12Merge master and fix conflictsAlex Deucher
2009-06-11radeon: increase max bo countMaciej Cencora
2009-05-26fix build when HAVE_LIBDRM_RADEON is definedAlex Deucher
2009-05-24radeon: Remove drawable & readable from radeon_dri_mirrorNicolai Hähnle
The duplication of state data caused a crash due to double-free on destruction of context, because a variable wasn't correctly null'ed out. Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-05-20radeon: Increase reference count of current renderbuffers.Michel Dänzer
Fixes glxinfo: main/renderbuffer.c:2159: _mesa_reference_renderbuffer: Assertion `oldRb->Magic == 0xaabbccdd' failed.
2009-05-19Makeup checkin for radeon code change paired with r6/7 code.root
2009-05-10radeon: add support for new dri2 interfaces & fix single buffer renderingJoel Bosveld
2009-05-04r300: set proper texture row alignment for IGP chipsMaciej Cencora
Looks like r400 based IGP chips require 64 byte alignment
2009-04-02radeon/r200/r300: fix up the whole buffer space checking.Dave Airlie
This fixes up the buffer validation scheme, so that we keep a list of buffers to validate so cmdbuf flushes during a pipeline get all the buffers revalidated on the next emit. This also fixes radeonFlush to not flush unless we have something useful to send to the GPU, like a DMA buffer or something not state
2009-04-02radeon/r200/r300: collapse context destruction down to a common path.Dave Airlie
Context destruction was nearly the same over all the drivers, so collapse it down.
2009-03-23raedon/r200/r300: mega-FBO commits.Dave Airlie
Re work depth issues. Do a lot more FBO abstactions fixup depth/stencil buffer interactions