summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-10-30i810: kill mmio vga access helpersi810-vgaDaniel Vetter3-94/+0
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30i810: use vgahw functions instead of roll-your-ownDaniel Vetter2-13/+19
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30i810: rip out PIO access functionsDaniel Vetter3-44/+0
All the io done at init time is already converted to libpciaccess Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch> i810: rip out PIO access functions All the io done at init time is already converted to libpciaccess sobdanvet
2011-10-30i810: kill dead i830 definesDaniel Vetter1-16/+0
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30sna/composite: Fix incorrect operator reduction for RenderFillRectanglesChris Wilson7-48/+89
As exemplified by KDE (using Kate) on gen3, it would attempt to render a large set of boxes using OVER and a transparent colour. As gen3 copied across some of the BLT assumptions, it was incorrectly reducing that to a CLEAR and thus rendering incorrectly. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-29Use malloc/calloc/realloc/free directlyJeremy Huddleston4-4/+4
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-29sna/gen3: Set the src flags for fillChris Wilson1-0/+14
A regression from c2040fb8e62076d87f7a5b407505ee3f3482945e (sna: Remove the memset(0) of the fill op) left the flags for the source channel uninitalised leaving the shader construction undefined and causing visual glitches. Reported-by: Paul Neumann <paul104x@yahoo.de> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42367 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-29sna/genX: Improve reduction of Render operator to BLT aluChris Wilson5-63/+74
This appeared to introduce a visual gitch into the xfce4 selection box on gen6 at least. References: https://bugs.freedesktop.org/show_bug.cgi?id=42367 Reported-by: Paul Neumann <paul104x@yahoo.de> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-29sna: Tweak PolyRectangle blittingChris Wilson1-9/+9
A box of height/width 1 and lineWidth 0 can also be drawn with a single box as the far edge is contiguous with far side of the near edge. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-29sna: Further clipping bugsChris Wilson1-17/+30
Make sure the line is clipped to the current clip box and discard if the clip is reduced to nothing. References: https://bugs.freedesktop.org/show_bug.cgi?id=42361 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-29sna: Increment clip box when short-circuiting the iterationChris Wilson1-4/+12
Reported-by: nkalkhof@web.de Bugzilla: https://bugs.freedesktop.org/show_bug.cgi Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-29sna: Retire and search inactive again before creating new bufferChris Wilson1-0/+13
Attempt to retire an active buffer into the inactive cache before giving up and creating a new buffer. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-28sna: Don't flush the render caches if in the process of writing againChris Wilson6-6/+12
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-28sna: Faster unclipped rectilinear segmentsChris Wilson1-38/+82
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-28sna: Call miZeroArcLine where appropriate for GPU pathsChris Wilson1-1/+6
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-28sna: Faster unclipped PolyFillRectChris Wilson1-10/+34
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-28sna: Faster unclipped PolyPointChris Wilson1-19/+18
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-28sna: Call directly into tiled rects for tiled spans.Chris Wilson1-18/+32
As we already know the extents and that this is a candidate for GPU-acceleration, we can skip over those steps and emit the tiled rects. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-28sna: Faster unclipped spansChris Wilson1-17/+30
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-27sna/gen2: Reset BLT registers across 2D/3D context switchesChris Wilson1-0/+12
It appears the hardware trashes the BLT registers after a 3D context switch, so we need to reload. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-27sna: Fast path typically unclipped tiled rectsChris Wilson1-89/+75
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-27sna: Use private identifier for internal scratch pixmapsChris Wilson5-4/+10
This was meant to be a part of the previous commit. These are the scratch pixmaps for which we truly do want to allocate GPU-only. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-27sna: Create scratch pixmap on the CPUChris Wilson1-5/+2
Contrary to earlier belief, the only usage of CREATE_PIXMAP_USAGE_SCRATCH in the dix/mi are either along paths unused by us or more importantly for operations which are detrimental to create GPU-only buffers. So create CPU pixmaps instead. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-27sna: Tweak zero line spans to include missing last segmentChris Wilson1-8/+70
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-27sna: Fix advance through clip boxes for fill->boxesChris Wilson1-5/+5
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-27sna: Fix PolyPoint not to always send 512 boxesChris Wilson1-3/+3
Just emit the remaining boxes! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-27sna: Use fill->boxes to pack PolyFillRectangleChris Wilson1-68/+84
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-27sna: Use fill->boxes for rectilinear blitsChris Wilson1-182/+321
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-27sna: Clip PolyLines to the current clip boxChris Wilson1-2/+2
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-27sna: Handle singular clip regions for PolyRectanglesChris Wilson1-105/+219
Otherwise X will crash! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-27sna/io: Update batch mode after submitting partial requestsChris Wilson1-6/+15
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-27sna: Further improve use of fill->boxes for PolyRectangleChris Wilson1-285/+183
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-27sna/blt: After submitting the batch, it will be emptyChris Wilson1-2/+3
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-27sna/blt: Convert Copy with color 0 into a ClearChris Wilson1-0/+9
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-27sna: Suppress an overwritten fillChris Wilson1-0/+12
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-27sna/gen2: Cache the last solid colour for spansChris Wilson2-3/+8
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-27sna/composite: Discard opaque masksChris Wilson3-0/+17
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-27sna: Fix debug compilation, again.Chris Wilson7-10/+10
2011-10-27sna: Handle degenerate copy area whilst wedgedChris Wilson1-0/+10
We want to return early to avoid handing the empty box as the lower code makes the assumption that it has work to do. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-26sna/blt: Rename the composite pathsChris Wilson1-24/+24
Whilst re-reading, I found the old naming scheme slightly muddled and not nearly as descriptive as it should be. Hopefully this slight tweak reads better in 6 months time. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-26sna/blt: Share the common fill->boxes between blt and render pathsChris Wilson1-81/+120
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-26sna: Inline box_intersect()Chris Wilson1-1/+1
Most of this branchy function is spent in manipulating the stack for the function call, so inline it. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-26sna: Use fill->boxes to unroll FillSpansChris Wilson1-104/+156
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-26sna: Use fill->boxes to unroll PolyPointChris Wilson1-37/+46
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-26sna: Use the new fill->boxes for PolyRectangleChris Wilson1-63/+49
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-26self-copy-damageChris Wilson1-1/+2
2011-10-26sna: Convert diagonal zero-width lines into blitsChris Wilson9-91/+1020
This is slower than falling back to swrast for x11perf (up to 4x slower on SNB), it is still faster than doing that rasterisation through a WC-mapping and much faster in ordinary usage due to avoiding the readback hit. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-23sna: Flatten the branching for fill-spansChris Wilson1-79/+204
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-23sna/blt: Upload the box using a single 64-bit instructionChris Wilson1-6/+3
So long as we have 64-bit instructions of course! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-23sna: Execute blits directly for PolyRectangleChris Wilson1-1/+557
By constructing the batch buffer directly for PolyRectangle, rather than via miPolyRectangle->(PolyFillRectangle/PolyLine), we dramatically reduce the CPU overhead and can saturate the GPU. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>