summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-06-30sna: Distinguish 830/845 vs 855/865 using the generation idChris Wilson
Remove the PCI ID device checks by using the simpler check on the generation id for errata pertaining to 830/845. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-28uxa/glyphs: Fallback instead of crashing on large stringsChris Wilson
Not ideal, but being slow is a major improvement over losing data. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=36860 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-27sna/video: Use EXTEND_PAD to avoid mixing in the border colorChris Wilson
...which is 0 and appears green around an unaligned YUV-video. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38723 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-27sna: Disable XVideo using the TexturedAdapter if the GPU is wedgedChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-26sna: Typo in debug assertion.Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-26sna/dri: Mark the GPU bo as damaged upon a page-flipChris Wilson
...so that CPU pixmap is correctly invalidated for the next readback. For instance, if you were to take a screenshot on a composited destkop. Reported-by: Sitosfe Wheeler <sitsofe@yahoo.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-26sna: Only create bo up to half the size of the mappable apertureChris Wilson
As we use GTT mappings if writing directly into the tiled buffer and the available aperture is reported by the kernel as the total GTT and not limited to the fenceable/mappable region, we need to manually probe this value and ensure that our creation and fenced routines observe this distinct limit. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-26sna/dri: Reorganise schedule_swap to not confuse immediate and wait pathsChris Wilson
Eeek, the wait-for-target-msc was using the immediate swap path, meaning that for copy-swaps the copy was submitting immediately but the client throttled waiting upon the target vblank. What is actually intended is for the presentation to be delayed until the target_msc. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-25sna/dri: Fix composited copy-swapsChris Wilson
The secret is not to cheat and render directly to the front buffer, but remember to mark the Window as damaged. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-25sna/display: Protect against drmModeGetCrtc returning NULLChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-25sna/gen4+: Use the drawable rectangle offset for copy boxesChris Wilson
Saves a little bit of work whilst emitting the rectangles. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-25sna: Correct typo in computing damage of PolyPointChris Wilson
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38614 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-24sna: Also allow BLT copies to discard the alpha channelChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-24sna/dri: Copy to real front upon swapChris Wilson
The front-buffer of a DRI2 drawable, may not in fact be pointing to the scanout pixmap. So override the destination for swapbuffers to update the scanout. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-24sna: Wrap the fbcon in a scratch pixmap for render-copy across depth changesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-24sna: Avoid using the BLT to copy between mismatching depthsChris Wilson
We either conflated bpp (which fails given a mixture of depth-24 and depth-30 pixmaps) or neglected to check at all. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-24sna: Support depth-30 and some more logging to show the depthChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-24Xv: set up pipeline for Xv on IvybridgeXiang, Haihao
The configuration is same as that on Sandybridge, but many state commands are changed Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2011-06-24Xv: upload new shaders to GEM objects for Xv on IvybridgeXiang, Haihao
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2011-06-24Xv: update SURFACE_STATE & SAMPLER_STATE for Xv on IvybridgeXiang, Haihao
SURFACE_STATE & SAMPLER_STATE are changed since Ivybridge Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2011-06-24Xv: New shaders for Xv on IvybridgeXiang, Haihao
Redefine some M4 macros, also update the check for intel-gen4asm to support Ivybridge Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
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>