summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-05-272.21.8 release2.21.8Chris Wilson
2013-05-25sna: Free the released COW reference when uncloningChris Wilson
Reported-by: Jiri Slaby <jirislaby@gmail.com> Reported-by: David Gow <david@ingeniumdigital.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64978 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-24sna: Fix cut'n'paste compile error from previous commitChris Wilson
Always check for outstanding diff before pushing. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-24sna: Log when the framebuffer changes sizeChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-24sna: Reorder cleanup of flush list and CPU bo to silence an assertionChris Wilson
Keep the bookkeeping in order. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-24sna: Reenable COW supportChris Wilson
Accidentally left it disabled whilst testing. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-24sna: Do not undo a bo if we may fallbackChris Wilson
If we undo the pending operations to a bo, then fallback we cause corruption. For example, see wine and its 1-bit rendering. Fixes regression from commit 07a4400fffe4f83df3debe62abd2c37b45f8f0c0 [2.21.7] Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Fri May 10 11:59:59 2013 +0100 sna: Attempt to discard overwritten operations before CopyArea Also we need to be more careful and consider alu when marking the operation as 'replaces'. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-24sna: Discard COW before migrating CPU damage to the GPUChris Wilson
At that point, the GPU bo will no longer be a clone of the source and so we need to decouple it and make ourselves a fresh copy. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-24sna: Do make a clone of a GPU bo that is itself a cacheChris Wilson
As we do not attempt to undo the cache status upon the clone. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-24sna: Correct assertion for reusing COWChris Wilson
Reported-by: Jiri Slaby <jirislaby@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47597 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-24sna: Check for NULL damage before dereferencingChris Wilson
Fixes regression from commit 16a64649e9c440ab9457467fe04be25719a73e7c [2.21.7] Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Fri May 10 15:48:58 2013 +0100 sna: Basic copy-on-write support for cloning pixmaps Reported-by: Axel Rohde Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-23sna: Only flags the PolyFillRect as REPLACES if it is unclippedChris Wilson
Otherwise we discard a fill operation that is required to initialise the pixmap before drawing commences. Fixes regression from commit ef9dc6fae585d5616446eedc1e6e91173f4064c1 [2.21.7] Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Mon May 20 11:08:51 2013 +0100 sna: Undo a few more overwritten operations upon a bo Reported-by: Matti Hamalainen <ccr@tnsp.org> Reported-by: Clemens Eisserer <linuxhippy@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64841 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-22sna: Remove the overzealous assertChris Wilson
IGNORE_CPU is sometimes only set when there is CPU damage to ignore... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-22sna: Fix DBG typo and so fix build with --enable-debugChris Wilson
s/hint/flags/ -- used the wrong variable name in an assert and upset the compiler. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-21sna: Warn about the consequences of disabling tilingChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-21sna/video: Convert to a pure Xv backendChris Wilson
This is to enable feature work which requires access to Client state. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-21sna: Re-enable read-read optimisationsChris Wilson
Coacher is optimistic that the issue is no longer reproducible on his machine - and whilst I do not understand the root cause, I am confident that the kernel code is correct as is our use. References: https://bugs.freedesktop.org/show_bug.cgi?id=61628 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-212.21.7 release2.21.7Chris Wilson
2013-05-21sna: Undo a few more overwritten operations upon a boChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-17sna: Clear the cow_list when discarding the clone upon pixmap destroyChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-17sna: Add the missing ref(bo) when undoing the source cloneChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-17sna: Undo the clone when replacing the DRI pixmapChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-17sna: Transfer ownership of the cloned bo to the pixmapsChris Wilson
Fix the leak from the previous commit. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-17sna: Avoid replacing pinned bo when undoing a cloneChris Wilson
Otherwise we end up cloning the scanout only to leave it dangling if the client copies the from the front-buffer and then writes to it. Reported-by: Nick Bowler <nbowler@draconx.ca> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64675 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-17sna: Clear mapped hints upon cloning a pair of pixmapsChris Wilson
Once cloned, we do not want to use inplace operations and instead force a copy. However, if we do not relinquish the hints when copying across the bo, then those hints become stale and lead to corruption. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-14sna: Correct assertions to allow discarding of cpu hint for inplace opsChris Wilson
Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-14sna: Assert that the mapping is released before closing the GEM handleChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-14sna: Basic copy-on-write support for cloning pixmapsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-14sna: Propagate clears when using the BLT composite routinesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-14sna: Propagate clear color when replacing by a CopyAreaChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-14sna: Attempt to discard overwritten operations before CopyAreaChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-14Adding more reserved PCI IDs for Haswell.Rodrigo Vivi
As Chris mentioned there is a tendency for us to find out more PCI IDs only when users report. So let's add all new reserved Haswell IDs. I didn't have better names for this reserved ids and didn't want to use rsvd1 and rsvd2 groups, so I decided to use "B" and "E" that stands for the last id digit. Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
2013-05-14Fix Haswell GT3 names.Rodrigo Vivi
When publishing first HSW ids we weren't allowed to use "GT3" codname. But this is the correct codname and Mesa is using it already. So to avoid people getting confused why in Mesa it is called GT3 and here it is called GT2_PLUS let's fix this name in a standard and correct way. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
2013-05-14sna/gen4: Tidy testing for an active vertex buffer idChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-14sna/gen4: Drop unused gen parameter to SF state setupChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-09sna/trapezoids: Fix the determination of the trapezoid originChris Wilson
"src-x and src-y register the pattern to the floor of the top x and y coordinate of the left edge of the first trapezoid," Bugzilla: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1178020 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-09sna: Add more debugging to unaligned trapezoidsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-09sna/gen7: Add DBG for channel setup for render sourceChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-09sna: Add DBG statements for choice of spans vertex emitterChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-09sna: Handle cached upload buffers for partial migration to GPUChris Wilson
Since the extended use of move_area_to_gpu for partial migration of render sources, we exposed the lack of handling of upload caches along that path. Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-07sna: Do not attempt to clean an active scanoutChris Wilson
For simplicity, skip buffers that are still in use by the batch - they will be removed later. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-01sna: Be careful not to preemptively upload portions of a SHM pixmapChris Wilson
Only upload the portion of the pixmap being used for this rendering operation, as outside of that may remain undefined and to be written by the client before a future operation. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-01sna: Page align requests to userptrChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-04-27Add all reserved PCI-IDs for HaswellChris Wilson
There is a tendency for a product to ship based on a 'reserved' PCI-ID prior to us being notified about it. In other words, the first we find out about such a product is when customers start complaining about their shiny new hardware not being supported... References: https://bugs.freedesktop.org/show_bug.cgi?id=63701 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-04-26uxa/dri: Fix compile error for unknown 'bool'Chris Wilson
It appears that it is only accidentally pulled in on some systems, but not all. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=63957 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-04-24sna: Prevent accessing an uninitialised region in move_area_to_gpu()Chris Wilson
If we skip the migration, we need to avoid using the unitialiased region. There is no bad consequence as both branches of the if are no-ops, but it does silence the static checkers and should make the predicate cheaper. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-04-18sna: Rephrase initialisation without a specific backendChris Wilson
"generic" sounds more impressive than "no" Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-04-17Revert "xgvevent"Chris Wilson
This reverts commit ddd75d6539dcf692cb76747cd63d1f301180f18a. This is a WIP patch, not ready for upstream. The danger of mixing topic branches.
2013-04-17Prefer i830_dri.so for gen2 chipsetsChris Wilson
Probe for i830_dri.so and, if it exists, use that driver in preference to i915_dri.so for DRI (i.e. GL clients). This was suggested in the context of distributions supplying i915g as the main DRI driver for gen3, in which case we need to provide a separate DRI driver for gen2. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-04-16xgveventChris Wilson