summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r600/r700_chip.c
AgeCommit message (Collapse)Author
2009-10-28r600: add occlusion query supportAlex Deucher
Based on initial patch from Stephan Schmid <stephan_2303@gmx.de>. Basic idea is to dump the zpass count at the start and end of the query and subtract to get the total number of visible fragments. HW writes alternating qwords for up to 4 DBs. On the first pass, we start at buffer address + 0; on the second pass, we start at buffer address + 8 (bytes). The resulting buffer at the end of the query looks like: qw[0]: db0 start qw[1]: db0 end ... qw[6]: db3 start qw[7]: db3 end The MSB of each qword is the valid bit and the lower 63 bits are the zpass count for that DB. OQ on RV740 is disabled at the moment as it only seems to report results for half of its DBs. This needs further investigation. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-10-23r600: remove remains of old tnl pipelineAlex Deucher
2009-10-23r600: fix render size predictionAlex Deucher
2009-09-25radeon: Fix newlines.Michal Krol
2009-09-24r600 : fix draw_prim bug: vertex fetcher setting.Richard Li
2009-09-22r600 : add draw_prim support.Richard Li
2009-09-14r600: add span support for 1D tilesAlex Deucher
1D tile span support for depth/stencil/color/textures Z and stencil buffers are always tiled, so this fixes sw access to Z and stencil buffers. color and textures are currently linear, but this adds span support when we implement 1D tiling. This fixes the text in progs/demos/engine and progs/tests/z*
2009-09-11r600: enable caching of vertex programsAndre Maasikas
2009-09-09r600: check if textures are actually enabled before submissionAlex Deucher
noticed by taiu on IRC.
2009-09-03r600: rework cb/db setupAlex Deucher
Setup the regs when we emit rather than during state setup. In certain cases a proper CB target was never emitted. This fixes bug 23658.
2009-08-31r600: Convert to shared debug code and add a few new debug messages.Pauli Nieminen
There is only a few functions that have debugging enabled now.
2009-08-24r600: fix state emit sizesAlex Deucher
2009-08-23r600: fix count for CB/DB target stateAlex Deucher
2009-08-22r600: make state emit more fine grainedAlex Deucher
Gives a nice speed boost in most apps since we only emit what state we need.
2009-08-22r600: move full state to radeon state atomsAlex Deucher
2009-08-22r600: add support for RS880Alex Deucher
2009-08-21r600: better default state size.Alex Deucher
Hopefully suokko's emit size impovements will land soon.
2009-08-20r600: convert to using common radeon state atomsAlex Deucher
switches more state handling to common code. We need should be more fine grained with the state atoms eventually.
2009-08-20r600: improve state emissionAlex Deucher
Slowing migrating to atom based system like the other radeon drivers.
2009-08-20r600: split state emit into block specific functionsAlex Deucher
We probably want to go finer grained eventually, but this is a good start.
2009-08-20r600: move misc regs from general stateAlex Deucher
These regs don't use the SET_CONTEXT_REG packet, so they weren't getting set correctly.
2009-08-20r600: rework emit codeAlex Deucher
make sure we allocate enough space for relocs
2009-08-19r600: minor cleanupAlex Deucher
2009-08-14r600: emit SURFACE_BASE_UPDATE on depth base updates on rv6xxAlex Deucher
2009-08-13r600: move non-surface related cb state to general stateAlex Deucher
2009-08-13r600: move non-surface related depth state to general stateAlex Deucher
2009-08-12r600: state cleanupsAlex Deucher
2009-07-31r600: make sure bos are valid before usign thatAlex Deucher
2009-07-31r600: remove unused offset_mod stuffAlex Deucher
this is a step in migrating to the common cs code
2009-07-31r600: unify state emit into one functionAlex Deucher
2009-07-31r600: re-arrange state setup and emit so they are not mixedAlex Deucher
2009-07-30r600: warning fixesAlex Deucher
2009-07-28r600: fix flat shadingAlex Deucher
Set the flat shading bit on the appropriate PS input depending on the type of attribute it is. The VS output and PS input routing should probably be made more dynamic at some point. We may want to use semantic ids to make it easier.
2009-07-27r600: set VGT NUM_INSTANCES as part of the draw commandAlex Deucher
set VGT NUM_INSTANCES as part of the draw command rather than as state as recommended by the pm4 guide. Also, use the NUM_INSTANCES packet.
2009-07-27r600: switch vtx resource setup to use SETfield macrosAlex Deucher
For consistency
2009-07-21r600: add alpha test supportAlex Deucher
2009-07-20r600: add user clip plane supportAlex Deucher
2009-07-17R6xx/R7xx: add fine grained syncing supportAlex Deucher
2009-07-17R6xx/r7xx: send depth state in it's own functionAlex Deucher
2009-07-17R6xx/r7xx: add some missing state regsAlex Deucher
2009-07-16R6xx: fix rendering on r6xx/rs780 chipsAlex Deucher
You always need to emit a fetch shader (fs) even if you aren't using it. For now, just emit the fs with the vs address to make the kernel happy.
2009-07-16Restore vp input mapping, fix vtx stream missing problem.Richard Li
2009-07-15R6xx/r7xx: warning fixesKevin DeKorte
2009-07-15R6xx/r7xx: fix missing vertex streamRichard Li
Somehow context->radeon.tcl.aos[j].bo is not null sometimes, but it is safe for now because it is only a pointer to dma.current so overwriting it would not hurt anything.
2009-07-14r6xx/r7xx: fix buffer aging bugAlex Deucher
We were using sparse indexing for aos, while the common code expected packed indexing.
2009-07-06R6xx/r7xx: first pass at texture supportAlex Deucher
texture bo setup isn't quite working yet
2009-07-01r6xx/r7xx: rework aos setupAlex Deucher
In theory this should fix the stride = 0 case, but I can't seem to reproduce that anymore with mesa master.
2009-06-22add LINK_STATES for SPI_PS and SEMANTICCooper Yuan
2009-06-11Properly set aos_countAlex Deucher
This is used by radeonReleaseArrays to free AOS.
2009-06-09Pull in additional state setup from the DDXAlex Deucher