aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200/r200_swtcl.c
Commit message (Collapse)AuthorAgeFilesLines
* r200: remove unneeded #include "util/simple_list.h"Brian Paul2016-11-201-1/+0
| | | | | | | And include "util/simple_list.h" where it is needed in r200_state.c Compile tested only. Reviewed-by: Vinson Lee <[email protected]>
* radeon/r200: remove unneeded #include of colormac.hMark Janes2015-10-061-1/+0
| | | | Reviewed-by: Matt Turner <[email protected]>
* mesa: Remove unused HAVE_TRI_STRIP_1 definesIan Romanick2015-09-231-1/+0
| | | | | | | Defined to 0 in a few places, but it's not used anywhere. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* radeon: replace __FUNCTION__ with __func__Marius Predut2015-04-211-1/+1
| | | | | | | | | Consistently just use C99's __func__ everywhere. No functional changes. Signed-off-by: Marius Predut <[email protected]> Acked-by: Michel Dänzer <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
* r200: replace INLINE with inlineBrian Paul2015-02-261-1/+1
| | | | Reviewed-by: Alex Deucher <[email protected]>
* mesa: Move simple_list.h to src/util.Eric Anholt2015-01-281-1/+1
| | | | | | We have two copies of it in the tree, I'm going to delete one. Reviewed-by: Marek Olšák <[email protected]>
* mesa/drivers: Fix clang constant-logical-operand warnings.Vinson Lee2014-06-141-2/+2
| | | | | | | | | | | | | | | | This patch fixes several clang constant-logical-operand warnings such as the following. ../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:130:32: warning: use of logical '||' with constant operand [-Wconstant-logical-operand] if (DO_TWOSIDE || DO_OFFSET || DO_UNFILLED || DO_TWOSTENCIL) ^ ~~~~~~~~~~~ ../../../../../src/mesa/tnl_dd/t_dd_tritmp.h:130:32: note: use '|' for a bitwise operation if (DO_TWOSIDE || DO_OFFSET || DO_UNFILLED || DO_TWOSTENCIL) ^~ | Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Matt Turner <[email protected]>
* s/Tungsten Graphics/VMware/José Fonseca2014-01-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tungsten Graphics Inc. was acquired by VMware Inc. in 2008. Leaving the old copyright name is creating unnecessary confusion, hence this change. This was the sed script I used: $ cat tg2vmw.sed # Run as: # # git reset --hard HEAD && find include scons src -type f -not -name 'sed*' -print0 | xargs -0 sed -i -f tg2vmw.sed # # Rename copyrights s/Tungsten Gra\(ph\|hp\)ics,\? [iI]nc\.\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./g /Copyright/s/Tungsten Graphics\(,\? [iI]nc\.\)\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./ s/TUNGSTEN GRAPHICS/VMWARE/g # Rename emails s/[email protected]/[email protected]/ s/[email protected]/[email protected]/g s/jrfonseca-at-tungstengraphics-dot-com/jfonseca-at-vmware-dot-com/ s/jrfonseca\[email protected]/[email protected]/g s/keithw\[email protected]/[email protected]/g s/[email protected]/[email protected]/g s/thomas-at-tungstengraphics-dot-com/thellstom-at-vmware-dot-com/ s/[email protected]/[email protected]/ # Remove dead links s@Tungsten Graphics (http://www.tungstengraphics.com)@Tungsten Graphics@g # C string src/gallium/state_trackers/vega/api_misc.c s/"Tungsten Graphics, Inc"/"VMware, Inc"/ Reviewed-by: Brian Paul <[email protected]>
* r200: fix build failure introduced with cbbcb0247e6aa8d7adc274a94206ee02f9c70beaLaurent Carlier2013-04-171-1/+1
| | | | Signed-off-by: Brian Paul <[email protected]>
* mesa: remove DD_TRI_LIGHT_TWOSIDE flagBrian Paul2013-04-171-3/+6
| | | | | | v2: use conditional operator instead of bit shifting Reviewed-by: Eric Anholt <[email protected]>
* mesa: remove DD_TRI_UNFILLED flagBrian Paul2013-04-171-3/+11
| | | | | | | Use alternate code in intel, r200, radeon drivers. v2: use conditional operator instead of bit shifting Reviewed-by: Eric Anholt <[email protected]>
* mesa: remove DD_POINT_SMOOTH flagBrian Paul2013-04-171-1/+1
| | | | Reviewed-by: Eric Anholt <[email protected]>
* radeon: Convert to use GLbitfield64 directly.Mathias Fröhlich2011-12-281-18/+17
| | | | | Signed-off-by: Mathias Froehlich <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* dri: Remove cliprect information from __DRIdrawableKristian Høgsberg2011-11-021-2/+1
|
* radeon/r200: drop remains of r300/r600 support along with old drm 1.x kernelDave Airlie2011-10-301-2/+1
| | | | | | | | This drops all the old drmSupports* checks since KMS does them all, and it also drop R300_CLASS and R600_CLASS. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* radeon: Drop dri2 checks now that it's always true.Eric Anholt2011-10-281-2/+0
| | | | This makes LOCK_HARDWARE empty, so it goes away.
* r200: fix r200 large pointsRoland Scheidegger2010-11-101-4/+3
| | | | | | | | | | | | | | | | | | | | DD_POINT_SIZE got never set for some time now (as it was set only in ifdefed out code), which caused the r200 driver to use the point primitive mistakenly in some cases which can only do size 1 instead of point sprite. Since the logic to use point instead of point sprite prim is flaky at best anyway (can't work correctly for per-vertex point size), just drop this and always emit point sprites (except for AA points) - reasons why the driver tried to use points for size 1.0 are unknown though it is possible they are faster or more conformant. Note that we can't emit point sprites without point sprite cntl as that might result in undefined point sizes, hence need drm version check (which was unnecessary before as it should always have selected points). An alternative would be to rely on the RE point size clamp controls which could clamp the size to 1.0 min/max even if the SE point size is undefined, but currently always use 0 for min clamp. (As a side note, this also means the driver does not honor the gl spec which mandates points, but not point sprites, with zero size to be rendered as size 1.) This should fix recent reports of https://bugs.freedesktop.org/show_bug.cgi?id=702. This is a candidate for the mesa 7.9 branch.
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-16/+16
|
* r200: revalidate after radeon_update_renderbuffersDaniel Vetter2010-10-111-0/+3
| | | | | | | | | | | | | | | | | By calling radeon_draw_buffers (which sets the necessary flags in radeon->NewGLState) and revalidating if NewGLState is non-zero in r200TclPrimitive. This fixes an assert in libdrm (the color-/ depthbuffer was changed but not yet validated) and and stops the kernel cs checker from complaining about them (when they're too small). Thanks to Mario Kleiner for the hint to call radeon_draw_buffer (instead of my half-broken hack). v2: Also fix the swtcl r200 path. Cc: Mario Kleiner <[email protected]> Signed-off-by: Daniel Vetter <[email protected]>
* radeon: Add DRI2 flush extension support, so we synchronize properly.Mario Kleiner2010-08-021-0/+2
| | | | | | | | | | | | | | 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]>
* Revert "radeon: Add DRI2 flush extension to so we synchronize properly."Jerome Glisse2010-08-021-2/+0
| | | | This reverts commit 8446f257b3e3ca4a3eb2c79bc357e46343e04e87.
* radeon: Add DRI2 flush extension to so we synchronize properly.Mario Kleiner2010-08-021-0/+2
| | | | | | | | | | | | | | | | | 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 <[email protected]> Signed-off-by: Mario Kleiner <[email protected]>
* Remove stray defines of HAVE_RGBAIan Romanick2010-03-031-1/+0
| | | | | | | Now that color-index support is removed from t_dd_tritmp.h and t_dd_unfilled.h, drivers no longer need define HAVE_RGBA. Signed-off-by: Ian Romanick <[email protected]>
* r200: Remove unnecessary headers.Vinson Lee2010-01-301-1/+0
|
* radeon/r200/r300/r600: make bo mapping be explicitDave Airlie2009-11-241-1/+1
| | | | | | | | | | 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 <[email protected]>
* tnl: Replace deprecated TexCoordPtr with AttribPtr[_TNL_ATTRIB_TEX*]Eric Anholt2009-11-191-1/+1
|
* r200: Convert r200 to use new style debug code.Pauli Nieminen2009-08-311-6/+6
| | | | Only very few places where realy converted so there isa lot of to do.
* radeon: Fix swtcl emit pediction.Pauli Nieminen2009-08-291-5/+14
| | | | | | Problem was to find the correct place to run prediction. Only place that is called for every primitive is ALLOC_VERTS so we have to do prediction there before allocation.
* radeon/r200/r300: Fix swtcl prediction to work after primitie change.Pauli Nieminen2009-08-271-12/+25
| | | | | Swtcl calls flush everytime primitive changes so prediction has to made again after flushing.
* radeon/r200/r300: Fix swtcl flushing not to invalidate dma region.Pauli Nieminen2009-08-271-3/+19
| | | | | We were check command buffer sizes too alte so allocated dma regions were freed before relocations so space checking failed.
* radeon: Fix all compiler warnings.Pauli Nieminen2009-08-251-1/+1
|
* radeon: Improve state emit code.Pauli Nieminen2009-08-211-1/+1
| | | | Trying to make understanding code easier with small refactoring and renaming.
* r200: Make swtcl use state size prediction for flush.Pauli Nieminen2009-08-211-1/+1
| | | | Signed-off-by: Pauli Nieminen <[email protected]>
* radeon: Optimize memory handling for dma operations.Pauli Nieminen2009-08-181-1/+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]>
* radeon: Remove drawable & readable from radeon_dri_mirrorNicolai Hähnle2009-05-241-18/+18
| | | | | | | 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 <[email protected]>
* radeon/r200/r300: collapse context destruction down to a common path.Dave Airlie2009-04-021-4/+0
| | | | | Context destruction was nearly the same over all the drivers, so collapse it down.
* radeon/r200/r300: make build with out libdrm_radeon installed for nowDave Airlie2009-02-121-1/+0
|
* radeon/r200/r300: another big merge upheavel.Dave Airlie2009-02-121-7/+3
| | | | | | | | This merges lots of the hw state atom emission and firevertices code. it also removes a lot of the extra radeon crap from r300 and merge scissor
* r200/r300: swtcl fixups to use old dma buffers on top of BOsDave Airlie2009-01-311-76/+37
|
* r200: fix swtcl - slow but worksDave Airlie2009-01-301-0/+4
|
* r200: bring back single dma flushDave Airlie2009-01-291-3/+3
|
* r200: unref swtcl buffer correctlyDave Airlie2009-01-291-0/+1
|
* r200: fix up swtcl/tcl flushesDave Airlie2009-01-221-5/+1
|
* r200: remove indexed vertsDave Airlie2009-01-221-2/+0
|
* r200: clear is working at least - not much elseDave Airlie2009-01-201-45/+25
|
* radeon/r200/r300: attempt to move lock to common codeDave Airlie2009-01-141-2/+2
|
* radeon/r200/r300: initial attempt to convert to common context codeDave Airlie2009-01-141-18/+19
|
* radeon/r200: move more stuff closer together in contextDave Airlie2009-01-141-1/+1
|
* radeon/r200: start splitting out commonalities into separate headersDave Airlie2009-01-131-8/+8
|
* mesa: added "main/" prefix to includes, remove some -I paths from ↵Brian Paul2008-09-181-7/+7
| | | | Makefile.template