summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-03-27Add xwayland supportxwayland-1.12Kristian Høgsberg5-7/+108
2012-03-27sna/traps: Prefer to try mono spans on the GPU before trying inplace CPUChris Wilson1-1/+10
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-27sna/traps: Fix the width of the left-hand edge of an unaligned boxChris Wilson1-1/+1
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-27sna/gen6: Reduce opaque solid OVER to SRC for render compositeChris Wilson1-1/+4
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-26sna: Remove bogus assertion of no references to in-flight upload buffersChris Wilson1-1/+0
As we may hold a cached reference to an upload buffer whilst it is in-flight, the assertion that there are no such references to a buffer being reused is no longer true. Those cached references will be released as soon as we retire the buffer during the readback and so we are free to reuse such an upload buffer for immediate readback. Reported-by: Jiri Slaby <jirislaby@gmail.com> References: https://bugs.freedesktop.org/show_bug.cgi?id=47597 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-26Avoid duplicated code with intel_output_create_ranged_atomPaulo Zanoni2-118/+90
Same change for intel_display.c and sna_display.c. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-25sna/gen2+: Approximate expensive gradients when using imprecise renderingChris Wilson8-39/+201
If we lack the ability to use a shader to compute the gradients per-pixel, we need to use pixman to render a fallback texture. We can reduce the size of this texture and upsample to reduce the cost with hopefully imperceptible loss of quality. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-23uxa: Remove hook for CompositeRectanglesChris Wilson3-194/+0
It was broken and not flushing damage correctly. With the improvements made to the kernel, it is no longer a significant advantage per se and not worth its additional complexity. Reported-by: Tilman Sauerbeck <tilman@code-monkey.de> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=32547 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-23configure: Stop the debug build erroring out if it cannot find valgrindChris Wilson1-2/+4
Another case where I passed an empty string believing that would be sufficient to replace the error path... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-22sna: Make the fallback debugging messages more consistentChris Wilson1-26/+42
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-22sna: Update the target bo after changing from Y tilingChris Wilson1-2/+5
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-22sna: Correctly test for clear glyphs when searching for ones to skipChris Wilson1-5/+13
With xterm, it is quite common for it to redraw itself by using lots of spaces and so it is efficient for us if we ellide those clear glyphs and only draw the backing boxes. However, we were only checking the first 8 pixels in each line because of a missing pointer increment. Fixes absent '=' characters when using a compositor and ImageText. Reported-by: Jiri Slaby <jirislaby@gmail.com Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47735 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-22sna: Adjust the damage region for the composite offsetChris Wilson1-1/+11
References: https://bugs.freedesktop.org/show_bug.cgi?id=47597 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-22sna: Force fallbacks if the destination is unattachedChris Wilson4-25/+44
Since the removal of the ability to create a backing pixmap after the creation of its parent, it no longer becomes practical to attempt rendering with the GPU to unattached pixmaps. So having made the decision never to render to that pixmap, perform the test explicitly along the render paths. This fixes a segmentation fault introduced in 8a303f195 (sna: Remove existing damage before overwriting with a composite op) which assumed the existence of a backing pixmap along a render path. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47700 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-21sna: Assert that the bo created is large enoughChris Wilson1-0/+7
Double check that the maximum access size computed from the bo parameters is within the allocated size for the bo. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-21sna: Assert that the tiled blt is correctly clippedChris Wilson1-0/+5
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-21sna: Fallback to inplace upload if forced to tile the indirect replacementChris Wilson1-91/+26
Reported-by: Clemens Eisserer <linuxhippy@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47629 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-21sna: Tidy an assertion when handling tiled copiesChris Wilson2-1/+3
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-21sna: Remove the short-circuiting of move-to-cpu for read if no damageChris Wilson1-1/+1
The danger now is that we may have either discarded the shadow pixels or have replaced them with a GTT mapping, either way undesirable and so we should reconstruct the shadow mapping. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-20sna: Decouple the private data after UnrealizeFontChris Wilson1-0/+1
As the font is kept around and reused after UnrealizeFont, we need to nullify the pointer to our private data in order to prevent the later use-after-free. Reported-by: Peter Jordan Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-20sna/traps: Remove bogus assertionChris Wilson1-1/+0
As we only enter that path for singular unbounded boxes, we are guaranteed to fill the entire trapezoid extents and so do not need the unbounded fixup the assertion was fretting about. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-19uxa: Defer the call to EnterVT till after outputs are initialisedChris Wilson1-8/+5
We need to do this apparently or else we never perform the VT switch. However, we can not do it too early, especially not before we have finished intialising the outputs. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47395 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-19sna: Declare videoRam correctly on gen2 devicesChris Wilson1-2/+7
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-19sna/dri: Make the drawable as damaged for the off-screen immediate exchangeChris Wilson1-0/+12
In some cases off-screen is stil visible, for example under a rotation. As such xrandr -o left; glxgears -fullscreen was broken. Reported-by: Phillip Haddad <phillip.haddad@gmail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-18sna/traps: Remove separate edge->vertical flagChris Wilson1-22/+18
Mark vertical edges with dy==0 to reduce structure size and reduce memory load during edge walking. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-18sna/gen3: Improve clear-to-solid reductionChris Wilson1-0/+24
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-18sna/gen3: Do not force tiling for large pixmapsChris Wilson1-11/+5
As the extraction routine is now smarter and can construction subsurfaces without copying we do not need to force tiling. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-18sna/gen3: Prevent copy-fallback if we cannot blitChris Wilson1-0/+4
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-18sna: Fixup the cpu shadow mappings before uploading the boxChris Wilson1-6/+18
On the off-chance we arrive here with a pointer to the GTT mapping. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-18sna/traps: Apply some more operator and unbounded reductionsChris Wilson1-4/+39
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-18sna/gen[345]: Convert CPU mappings to GTT for vertices on submitChris Wilson5-26/+121
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-18sna/traps: Upon reducing an ADD to a SRC, we need to apply the pending clearChris Wilson1-2/+11
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47444 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-17sna/traps: Align indices for unrolled memset in row_inplace()Chris Wilson1-0/+15
The compiler presumes that the uint64_t write is naturally aligned and so may emit code that crashes with an unaligned moved. To workaround this, make sure the write is so aligned. References: https://bugs.freedesktop.org/show_bug.cgi?id=47418 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-17sna/traps: Tune inplace_end_subrows()Chris Wilson1-24/+35
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-16sna/dri: Mesa expects the 8-bit stencil buffer to have 2-bytes per pixelChris Wilson1-3/+2
The seperate stencil buffer is full of lies, why worry about one more? Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-16sna/dri: Improve handling of non-front attachments for CopyRegionChris Wilson1-37/+163
Confusion reigns between using the backing pixmap for the drawable for the front buffer, and a fake pixmap for the auxiliary buffers. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-16sna/gen3: Micro-optimise solid span emissionChris Wilson1-6/+36
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-16sna/traps: Micro-optimise span emissionChris Wilson1-6/+22
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-16sna/traps: Tune nonzero_rowChris Wilson1-13/+22
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-16sna/traps: Make the inline u8 arithmetic more robustChris Wilson1-4/+29
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-16sna/traps: Remove the old paths for mono inplace trapsChris Wilson1-99/+13
Dead code elimination. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-15sna: Correct the order of screen private teardownChris Wilson1-4/+4
So that we do not keep a stale references of the last cached pixmap across server regeneration (or shutdown). Reported-by: Thierry Reding <thierry.reding@avionic-design.de> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47357 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-15sna: Prefer the CPU bo for uploads if last access was not through the shadowChris Wilson1-4/+4
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-15sna: Fixup the shadow pixmap pointer for move-to-gpuChris Wilson1-3/+24
If we choose not to use the CPU bo for the upload (because we fear the subsequent synchronisation cost), we need to fixup the shadow pointer before dereferencing it. On the move-to-cpu side, the fixup is already performed as we will need to access the shadow pixels for the subsequent drawing operation. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-15uxa: Merge 'remove complicated second level caching'Chris Wilson8-169/+28
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47345 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-15uxa: Simplify allocation of backing pixmapChris Wilson1-11/+7
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-15uxa/i915: Remove broken CA pass, fallback to magic 2-pass composite helperChris Wilson2-36/+6
The backend failed to handle all the corner cases, so remove the complication. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-15uxa: Remove unused render_mask_solid membersChris Wilson1-2/+0
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-15uxa: Remove unused tracking of the current render targetChris Wilson3-12/+1
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-03-15uxa: Simplify flush trackingChris Wilson8-35/+13
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>