summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-06-24Xv: separate fragments from M4 macrosXiang, Haihao
It is to prepare for Xv on Ivybridge. The difference from Sandybridge is that all message payload must be in GRF registers instead of MRF registers on Ivybridge. We will only redefine some M4 macros for Ivybridge Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2011-06-24sna: Don't render to invalid surfacesChris Wilson
Fixes a regression from d0362a. In bypassing the is_wedged checked, we also ended up bypassing the checks that we could indeed render to the target bo. With the result that we were creating GPU buffers for SHM surfaces, something that requires Xserver fixes before we can actually enable... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-24sna: Clip the fbcon to the frontbufferChris Wilson
...both to correct the placement of the fbcon into the smaller scanout and to ensure that we correctly clip the boxes to be copied. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-23sna: Relent and workaround the lack of O_NONBLOCK on /dev/dri/card0Chris Wilson
So in order not to block server shutdown, check that the fd is readable before attempting to read from it. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-23sna: Debug compile fix, and some extra commentsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-23sna: For an unbounded op, we need to convert the whole surfaceChris Wilson
Otherwise if we fail to check, then we create a 0x0 surface to sample with the operation -- net result is that we end up using a clear source instead of the desired mask. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-22Don't include xf86Priv.hAdam Jackson
I'd like it to not be in the SDK anymore, and we're not using anything from it. Signed-off-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-22configure: Define required_xorg_xserver_version later so it can make ↵Jian Zhao
successfully.
2011-06-22sna/video: Use pwrite for upload of unclipped, unrotated framesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-20sna: Only reduce gpu damage after migrationChris Wilson
Otherwise we end up doing work for no reason, ala the regression in grads-heat-map. However, it is important that the damage is reduced at some point or else it may grow unbounded. Hopefully normal usage will never hit the pathologocial case... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-20sna/gen4: Check for sufficient batch space before emitting pipelined pointersChris Wilson
For the broken shader workaround, we need to reset the pipeline state before every blt as the state is changed by the magic CA pass. So we need to check that we actually have sufficient space to emit the pipelined pointers before doing so. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-20sna/gen4: Correct the number of dwods required to emit the ca passChris Wilson
We need 7 for pipelined pointers, 6 for the primitive and 1 for the flush. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-20sna: Don't perform a GPU copy of the scanout if it is wedged.Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-20sna: Add some debugging asserts for handling wedged GPUsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-20sna: Bypass the gpu-is-wedged? check for forced bo creationChris Wilson
In order to attach a scanout (and use swrast) on a wedged GPU, we need to bypass the safety checks for normal pixmap creation. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-18sna: Bump the required xserver version to 1.10Chris Wilson
SNA requires some pending bug fixes to the xserver so it makes little sense to conditionalise the code and deliberately cause broken behaviour. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=3843 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-17sna/display: After copying the fbcon, tell the server that we have a backgroundChris Wilson
... so that the core knows to skip the clear. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-17sna/display: Apply damage for the fbcon copyChris Wilson
... so that any immediate shadow usage will read back the fbcon contents. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-17sna: Copy the fbcon contents onto the front buffer upon X startupChris Wilson
This patch has been carried by the distributions every since they started doing graphical boot splashes. Time to integrate it and give it some TLC. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-17sna: Fix kgem_create_from_name error paths and to mark the bo as non-reusableChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-17sna/display: Remove the caching of the drmModeCrtcChris Wilson
We only use it for the id. Everything else stored on it, like the buffer_id, is not permanent and we need to query the current status as required. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-16sna/accel: convert BOX_ADD_RECT to an inline functionChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-16sna/accel: convert BOX_ADD_PT to an inline functionChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-16sna/accel: convert TRIM_AND_TRANSLATE_BOX to an inline functionChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-16sna/accel: convert TRANSLATE_BOX to an inline functionChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-16sna/accel: convert TRIM_BOX to an inlineChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-16sna/accel: convert CLIP_BOX to an inline functionChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-16sna/accel: convert BOX_EMPTY macro to an inline functionChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-16sna: Fix the typo in BOX_EMPTYChris Wilson
BOX_EMPTY(&box) surprisingly compiles and generates interesting code that evaluates to if (0). Oops. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-16sna: Only retire requests after IO if the bo was activeChris Wilson
We only want to process retirements if we know we caused a stall waiting for the GPU to release the bo before performing IO. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-16sna: Purge the bo cache only if we detect aperture thrashingChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-16uxa: Remove the attempt to use the 3D pipeline for core renderingChris Wilson
The attempt was still ridden with bugs, such as http://bugs.freedesktop.org/show_bug.cgi?id=28768 http://bugs.freedesktop.org/show_bug.cgi?id=28798 http://bugs.freedesktop.org/show_bug.cgi?id=28908 http://bugs.freedesktop.org/show_bug.cgi?id=29401 A fresh approach was taken with SNA, but in the mean time before that can be enabled downstream, restore correct behaviour. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-16sna: compile fix.Chris Wilson
A pox on all those who write trivial patches, attempt to compile on a system not having dri2proto and just assume that all is good. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-16sna/accel: Prevent initialising a region with an invalid boxChris Wilson
pixman complains if you attempt to use a region created with an invalid box, so don't do that. Reported-by: Reinhard Karcher <reinhard.karcher@gmx.net> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-16sna/dri: Add some comments to explain the choice of flags upon the boChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-15sna: Clear the gpu flag once is not busy and no flush is pendingChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-14sna/dri: And fix the blit swap pathsChris Wilson
Following on the recent successes with the pageflip paths. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-14sna: Split zaphod across the crtcsChris Wilson
Since we have no global resource allocator for zaphod mode, that's what RandR-1.4 solves, we have to further constrain zaphod mode to only use one crtc per screen. This also means that you must match the output restrictions within the Screen definitions, noting that the crtc pipe id corresponds with the screen number. Reportede-by: Phillp Haddad <phillip.haddad@gmail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-14sna: Compile fix for debugging enabledChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-13test: Exclude the long running stress tests from make distcheckChris Wilson
tinderbox complains when it is left running for days on end... Reported-by: Jeremy Huddleston <jeremyhu@apple.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-13sna: Invalidate the mode if the front pixmap was swapped whilst blankedChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-13sna/dri: Accurately track front and pending front for async flipsChris Wilson
By not tracking the front buffer correctly, i.e. performing the exchange on every swap, GL_FRONT was no longer pointing at the updated buffer and neither was the root pixmap. So both X and GL would read the wrong buffer was the flip was pending. The other issue was that we would feed the old front buffer back to the application as a future back buffer (due to buffer caching) and so the kernel would duly insert a WAIT_EVENT for the pending flip to complete before allowing rendering to affect it. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-13sna/dri: Complete the pending async flip even after DrawableGoneChris Wilson
If the client exits before the async page-flip completes then we still need to decrement the pending flip count in order to correctly flip the scanout next time. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-12sna: Just do a pointer exchange when flipping with no scanoutChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-12sna: Check that the scanout is still attached before waiting for scanlineChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-12sna: Prevent tracking scratch pixmaps on older xserversChris Wilson
Before the xserver is patched to send notification of release of the scratch pixmaps, we cannot associated GPU resources with them. In practice, the only advantage for doing so is for SHM pixmaps... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-12sna/dri: Fix tripple-buffering for vblank_mode=0Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-11sna/dri: Skip querying current msc for immediate swapsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-11sna/dri: Queue page-flips immediately for next vblankChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-11sna/dri: For offscreen, swaps just exchange the buffersChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>