aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon/radeon_common.c
Commit message (Collapse)AuthorAgeFilesLines
* radeon: Implement EGL_MESA_no_surface_extensionJohann Rudloff2010-11-081-0/+4
|
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-14/+14
|
* radeon: Add DRI2 flush extension support, so we synchronize properly.Mario Kleiner2010-08-021-10/+5
| | | | | | | | | | | | | | 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 <[email protected]> Signed-off-by: Mario Kleiner <[email protected]>
* radeon: no need to emit full state twice after flushMaciej Cencora2010-03-071-5/+0
|
* radeon/r200/r300: don't clean non-emitted state.Dave Airlie2010-01-271-1/+2
| | | | | | | | | | | So if we don't actually emit an atom to the hw because we don't need it in the current state (e.g. lighting related atoms when lighting is off) then don't mark it as clean, because when lighting gets switched on we won't emit it at all. This fixes funky gears colors. Signed-off-by: Dave Airlie <[email protected]>
* Remove leftover __DRI{screen,drawable,context}Private referencesKristian Høgsberg2010-01-041-12/+12
| | | | | | | | | 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.
* mesa: Remove _mesa_exit wrapper for exit().Eric Anholt2009-12-221-1/+1
| | | | | It does nothing else while being less useful than exit() because it lacks attributes that real exit() has.
* radeon: fix frontbuffer read/drawpixelsDave Airlie2009-12-181-1/+23
| | | | | | | Bug 25699 The main problem was the optimising flush wasn't doing the front rendering checks properly.
* Merge branch 'mesa_7_7_branch'Andre Maasikas2009-12-081-23/+0
|\ | | | | | | | | | | Conflicts: src/mesa/drivers/dri/r600/r700_assembler.c src/mesa/main/version.h
| * Merge branch 'mesa_7_6_branch' into mesa_7_7_branchIan Romanick2009-12-071-23/+0
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: progs/demos/projtex.c progs/xdemos/glxinfo.c src/mesa/main/version.h To fix the confilicts in projtex.c and glxinfo.c I just took the code from mesa_7_6_branch. The conflicts seem to have occured from cherry-picks from mesa_7_7_branch to mesa_7_6_branch followed by commmits just to mesa_7_6_branch.
| | * radeon: fix polygon stippleAlex Deucher2009-12-041-23/+0
| | | | | | | | | | | | | | | | | | fixes fdo bug 25354 Signed-off-by: Alex Deucher <[email protected]>
* | | radeon: Only get DRI2 front buffer information for glXBindTexImageEXT.Michel Dänzer2009-12-051-4/+4
|/ /
* | Revert "radeon/r300: no need to flush the cmdbuf when changing scissors ↵Dave Airlie2009-12-021-3/+1
| | | | | | | | | | | | | | | | | | state in KMM mode" This reverts commit 286bf89e5a1fc931dbf523ded861b809859485e2. This doesn't appear to be correct, regression so revert it. http://bugs.freedesktop.org/show_bug.cgi?id=25193
* | radeon: use radeon_bo_is_referenced_by_cs for query objectsMaciej Cencora2009-11-141-3/+0
| |
* | radeon/r300: no need to flush the cmdbuf when changing scissors state in KMM ↵Maciej Cencora2009-11-141-1/+3
| | | | | | | | mode
* | radeon: remove unnecessary call to radeonEmitStateMaciej Cencora2009-11-141-2/+0
| | | | | | | | fixes bo space accounting errors
* | Merge branch 'mesa_7_6_branch'Brian Paul2009-10-101-5/+4
|\|
| * radeon: fix scissor regressionAlex Deucher2009-10-091-5/+4
| | | | | | | | fixes fdo bug 24248
* | Merge branch 'mesa_7_6_branch'Pauli Nieminen2009-09-241-4/+4
|\|
| * radeon: Fix scissors for r600 KMS.Pauli Nieminen2009-09-241-4/+4
| | | | | | | | | | | | | | Radeon generic scissors code had problem that some of code was using exclusive and some inclusive bottom right corner. Only r600 driver is using exclusive coordinate so changed generic code to pass inclusive coordinate and r600 driver changes BR coordinate to be exclusive.
* | mesa: rename functions to be more consistant with rest of mesaBrian Paul2009-09-191-1/+1
|/
* radeon: Add more verbose error message for failed command buffer.Pauli Nieminen2009-09-091-1/+3
|
* radeon: trim down #includesBrian Paul2009-09-011-28/+0
|
* radeon: use _mesa_meta_clear()Brian Paul2009-09-011-2/+2
|
* radeon: fix r100/r200 polygon stipple under kmsDave Airlie2009-09-011-25/+0
| | | | | | | | There really need to use state emits under kms, otherwise we end up with some dwords in the command buffer before we've ever emitted any useful state. Signed-off-by: Dave Airlie <[email protected]>
* r100: Use shared debug code.Pauli Nieminen2009-08-311-33/+26
| | | | | | 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.
* radeon: Fix scissors for dri1.Pauli Nieminen2009-08-281-4/+21
| | | | DRI1 has to set scissors in framebuffer coordinates.
* r100/r200: Bring back old PolygonStripple for DRI1.Pauli Nieminen2009-08-281-0/+22
| | | | DRI1 didn't have support for command buffer emit for stripple.
* r100/r200: Share PolygonStripple code.Pauli Nieminen2009-08-281-0/+25
|
* radeon: fix scissor calcs.Dave Airlie2009-08-271-15/+20
| | | | | | For non-FBOs we need to invert, for FBOs the scissors are non-inverted. no matter what we need to clamp them to the buffer sizes.
* radeon: Fix loop en condition so debug output doesn't flood meaningless values.Pauli Nieminen2009-08-271-1/+1
|
* radeon: Make RADEON_CMDBUF more fine grained.Pauli Nieminen2009-08-271-2/+8
|
* r200: Add scissor to state atom list.Pauli Nieminen2009-08-261-0/+3
| | | | Scissors are jsut one of states that we have to emit so it should be in state list
* radeon: Add debug output to radeonCountStateEmitSize.Pauli Nieminen2009-08-241-4/+17
|
* radeon/r300: Code clean up and logic fix.Pauli Nieminen2009-08-221-2/+2
|
* radeon: protect against buffer overflow in state atom debug code.Pauli Nieminen2009-08-211-0/+5
|
* radeon: Improve state emit code.Pauli Nieminen2009-08-211-52/+70
| | | | Trying to make understanding code easier with small refactoring and renaming.
* r300: Predict emit size for next rendering operation.Pauli Nieminen2009-08-211-1/+3
| | | | | | | | We do flush for cmd buffer in case there isn't enough space left for whole rendering operation. This protects dma regions from getting released in middle of state emit. Signed-off-by: Pauli Nieminen <[email protected]>
* r200: Remove unnecessary calls to rcommonEnsureCmdBufSpace.Pauli Nieminen2009-08-211-11/+6
| | | | | | Calling EnsureCmdBufSpace is not required because rendering pipeline has to quarentee free space. Signed-off-by: Pauli Nieminen <[email protected]>
* r200: Fix atom->check call to return emit size for atom.Pauli Nieminen2009-08-211-2/+2
| | | | | | | This patch makes render emit size prediction count the corect maximum emit size for state. Signed-off-by: Pauli Nieminen <[email protected]>
* r200: Prevent flush in middle of rendering.Pauli Nieminen2009-08-211-0/+23
| | | | | | | | | | | Patch adds prediction functionthat tries to predict emit size to the smallest possible values that is quarenteed to be higher than worst case scenario in rendering pipeline. State emit size prediction code is in place but fix for emit sizes is included in next patch. Signed-off-by: Pauli Nieminen <[email protected]>
* radeon: Optimize memory handling for dma operations.Pauli Nieminen2009-08-181-2/+2
| | | | | | | | | | 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 <[email protected]>
* r300: OQ reworkDave Airlie2009-08-181-0/+6
| | | | | | | | | | | | 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.
* r300: clear not_flushed OQ list after flushMaciej Cencora2009-08-151-2/+2
|
* r600: use the drm ioctls for swap and texture uploadAlex Deucher2009-08-111-26/+0
| | | | NOTE: THIS REQUIRES AN UPDATED DRM!
* radeon: Fix inverted test for disabling flushing of front buffer output.Eric Anholt2009-08-031-1/+1
| | | | (corresponding fix to the intel driver one)
* radeon: Cliprects has to be updated before doing anything with clip rectanglesPauli Nieminen2009-07-311-1/+2
| | | | | | | Reported to fix corruption while dragging an active window by John Bridgman. Signed-off-by: Pauli Nieminen <[email protected]> Signed-off-by: Nicolai Hähnle <[email protected]>
* Merge branch 'master' of git+ssh://[email protected]/git/mesa/mesa ↵Alex Deucher2009-07-151-270/+39
|\ | | | | | | | | | | | | into r6xx-rewrite This builds, but I get an assertion in radeonGetLock() due to the drawable being null.
| * intel/radeon: add common metaops code.Dave Airlie2009-07-151-249/+3
| | | | | | | | | | Move all the metaops to a dri_metaops file and port radeon/intel to use the new common meta ops code.
| * radeon: fix unsigned vs signed comparison in stencil code.Dave Airlie2009-07-151-1/+1
| | | | | | | | | | This function takes a GLint not a GLuint, passing in -1 breaks internally.