summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/r600
AgeCommit message (Collapse)AuthorFilesLines
2011-10-03r600g: bump domain selection up one layer.Dave Airlie3-6/+24
this is taken from a patch from Mathias Froehlich, just going to stage it in a few pieces. Signed-off-by: Dave Airlie <airlied@redhat.com> (cherry picked from commit ecc051d65b6e17115439fb3609cccfd59f6272bf, see https://bugs.freedesktop.org/show_bug.cgi?id=40979)
2011-05-06r600c/g: Add pci id for FirePro 2270Kostas Georgiou1-0/+1
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-05-03r600g: add new pci idsAlex Deucher1-0/+4
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-04-04r600g: add some additional ontario pci idsAlex Deucher1-0/+2
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-03-30r600g: move user fence into base radeon structureJerome Glisse5-40/+42
This avoid any issue when context is free and we still try to access fence through radeon structure. Signed-off-by: Jerome Glisse <jglisse@redhat.com> (cherry picked from commit 63b9790a55038c262b57c846a5f7067ea33fc60f)
2011-03-14r600: don't close fd on failed loadDave Airlie1-3/+0
This fd gets passed in from outside, closing it causes the X.org server to crap out when the driver doesn't identify the chipset. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-01-06r600g: add support for NI (northern islands) asicsAlex Deucher3-0/+42
This adds support for barts, turks, and caicos.
2011-01-06r600g: remove useless switch statementsAlex Deucher2-105/+0
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-01-06r600g: fix bo size when creating bo from handleJerome Glisse1-1/+1
Spoted by Alex Diomin Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-12-09r600g: Fix SCons build.Vinson Lee2-3/+3
2010-12-09r600g: avoid using pb* helper we are loosing previous cpu cycle with itJerome Glisse9-388/+364
r600g is up to a point where all small CPU cycle matter and pb* turn high on profile. It's mostly because pb try to be generic and thus trigger unecessary check for r600g driver. To avoid having too much abstraction & too much depth in the call embedded everythings into r600_bo. Make code simpler & faster. The performance win highly depend on the CPU & application considered being more important on slower CPU and marginal/unoticeable on faster one. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-12-07r600g: fix userspace fence against lastest kernelJerome Glisse2-0/+3
R6XX GPU doesn't like to have two partial flush writting back to memory in row without a prior flush of the pipeline. Add PS_PARTIAL_FLUSH to flush all work between the CP and the ES, GS, VS, PS shaders. Thanks a lot to Alban Browaeys (prahal on irc) for investigating this issue. Signed-off-by: Alban Browaeys <prahal@yahoo.com> Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-12-06r600g: remove useless flush mapJerome Glisse2-30/+1
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-12-05r600g: Cleanup block bo references in r600_context_fini().Henri Verbeet1-0/+3
2010-12-03r600g: more indentation fix + warning silencing + dead code removalJerome Glisse3-89/+12
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-11-25r300g/r600g: bump cache manager timeouts to 1sDave Airlie1-1/+1
On lightsmark on my r500 this drop the bufmgr allocations of the sysprof.
2010-11-22r600g: add support for ontario APUsAlex Deucher3-0/+10
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-11-22r600g: fix some winsys functions to deal properly with evergreenAlex Deucher2-10/+15
Are these functions actually used anywhere?
2010-11-22r600g: fix additional EVENT_WRITE packetAlex Deucher1-1/+1
Add explicit EVENT_TYPE field
2010-11-19r600g: add fetch shader capabilitiesJerome Glisse2-0/+33
Use fetch shader instead of having fetch instruction in the vertex shader. Allow to restrict shader update to a smaller part when vertex buffer input layout changes. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-11-19r600g: All EVENT_WRITE packets need the EVENT_INDEX fieldAlex Deucher2-13/+13
6xx-evergreen
2010-11-19r600g: fix occlusion query on evergreen (avoid lockup)Jerome Glisse2-2/+11
Occlusion query on evergreen need the event index field to be set otherwise we endup locking up the GPU. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-11-17r600g: fix buffer alignmentAlex Deucher1-0/+6
This should fix the remaining buffer alignment issues in r600g.
2010-11-15r600g: Cleanup the fenced_bo list in r600_context_fini().Henri Verbeet1-0/+13
2010-11-10r600g: allow driver to work without submitting cmd to GPUJerome Glisse1-0/+2
For driver performance analysis it usefull to be able to disable as much as possible the GPU interaction so that one can profile the userspace only. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-11-10ws/r600: match bo_busy shared/fence logic in bo_waitKeith Whitwell1-8/+9
Fixes crash in piglit depthrange-clear.
2010-11-08r600g: implement texture_get_handle (needed for eglExportDRMImageMESA)Benjamin Franzke3-1/+46
2010-11-03r600g: set hardware pixel centers according to gl_rasterization_rulesKeith Whitwell2-0/+2
These were previously being left in the default (D3D) mode. This mean that triangles were drawn slightly incorrectly, but also because this state is relied on by the u_blitter code, all blits were half a pixel off.
2010-11-03r600g: propogate resource usage flags to winsys, use to choose bo domainsKeith Whitwell3-7/+31
This opens the question of what interface the winsys layer should really have for talking about these concepts. For now I'm using the existing gallium resource usage concept, but there is no reason not use terms closer to what the hardware understands - eg. the domains themselves.
2010-11-02r600g: Fixed two memory leaks in winsys.Tilman Sauerbeck1-0/+2
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-11-02r600g: Made radeon_bo::map_count signed.Tilman Sauerbeck1-1/+1
That way assert(map_count >= 0) can actually fail when we screwed up. Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-11-02r600g: Fixed unmap condition in radeon_bo_pb_destroy().Tilman Sauerbeck1-4/+6
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-11-02r600g: Made radeon_bo_pb_map_internal() actually call radeon_bo_map().Tilman Sauerbeck1-13/+7
This ensures that we increase bo->map_count when radeon_bo_map_internal() returns successfully, which in turn makes sure we don't decrement bo->map_count below zero later. Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-11-02r600g: Removed unused 'ptr' argument from radeon_bo().Tilman Sauerbeck3-8/+4
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-10-27r600g: In radeon_bo(), call LIST_INITHEAD early.Tilman Sauerbeck1-1/+1
radeon_bo_destroy() will want to read the list field. Without this patch, we'd end up evaluating the list pointers before they have been properly set up when we destroyed the newly created bo if it cannot be mapped. Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-10-23r600g: not fatal if we can't get tiling info from kernelDave Airlie1-1/+1
2010-10-18r600g: retrieve tiling info from kernel for shared buffers.Dave Airlie3-2/+42
we need to know if the back is tiled so we can blit from it properly.
2010-10-18r600g: get tiling info from kernelDave Airlie3-0/+68
2010-10-15r600/drm: fix segfaults in winsys create failure pathKeith Whitwell1-3/+9
Would try to destroy radeon->cman, radeon->kman both which were still NULL. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-10-08r600g: Silence uninitialized variable warning.Vinson Lee1-1/+2
2010-10-08r600g: Silence uninitialized variable warning.Vinson Lee1-1/+2
2010-10-08r600g: Silence uninitialized variable warning.Vinson Lee1-1/+2
2010-10-08r600g: Remove unnecessary header.Vinson Lee1-1/+0
2010-10-06r600g: fix dirty state handlingJerome Glisse3-7/+7
Avoid having object ending up in dead list of dirty object. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-10-06r600g: avoid segfault due to unintialized list pointerJerome Glisse2-7/+9
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-10-05r600g: userspace fence to avoid kernel call for testing bo busy statusJerome Glisse5-47/+99
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-10-05r600g: simplify block relocationJerome Glisse2-9/+7
Since flush rework there could be only one relocation per register in a block. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-10-05r600g: use dirty list to track dirty blocksBas Nieuwenhuizen3-8/+31
Got a speed up by tracking the dirty blocks in a seperate list instead of looping through all blocks. This version should work with block that get their dirty state disabled again and I added a dirty check during the flush as some blocks were already dirty.
2010-10-05r600g: improve bo flushingJerome Glisse3-822/+822
Flush read cache before writting register. Track flushing inside of a same cs and avoid reflushing same bo if not necessary. Allmost properly force flush if bo rendered too and then use as a texture in same cs (missing pipeline flush dunno if it's needed or not). Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-10-05r600g: store reloc information in bo structureJerome Glisse2-23/+16
Allow fast lookup of relocation information & id which was a CPU time consumming operation. Signed-off-by: Jerome Glisse <jglisse@redhat.com>