summaryrefslogtreecommitdiff
path: root/src/drmmode_display.c
AgeCommit message (Collapse)Author
2010-02-26Use RADEON_ALIGN instead of open coding it.Matt Turner
Also fix some RADEON_ALIGN(x, 63), which would return incorrect results for odd x. Though this shouldn't happen, it's still not right. You wouldn't ever write (x + 62) & ~62 which is clearly wrong (and what it expands to). CC: Jerome Glisse <jglisse@redhat.com> CC: Alex Deucher <alexdeucher@gmail.com> CC: Dave Airlie <airlied@redhat.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
2010-02-25clean up kms zaphod handlingJames Le Cuirot
Taken from James patch on bug 24523 agd5f: adapt to the current code
2010-02-25update ZaphodHeads optionAlex Deucher
Now that the screen section mapping is fixed, Make the option per-instance and allow multiple outputs to be specified; e.g., DVI-0 and HDMI-0 associated with instance 0 and LVDS and VGA-0 associated with instance 1.
2010-02-23zaphod: hopefully fix kms + zaphodDave Airlie
2010-02-17radeon: add ZaphodHeads optionAlex Deucher
Allows users that want to use zaphod mode to select which xrandr outputs are assigned to which head. E.g., Option "ZaphodHeads" "LVDS,VGA-0" will assign LVDS to the first zaphod driver instance and VGA-0 to the second instance.
2010-01-08radeon/kms: add new strings for eDP and TVAlex Deucher
2009-11-26kms: Fix resizing when acceleration is disabledJerome Glisse
When acceleration is disabled we need to reallocate a new shadow framebuffer and we should also avoid calling any EXA function as EXA is disabled in such case.
2009-11-25kms: allow prepare copy to fail without dyingDave Airlie
2009-11-20kms: recalculate the flush limits after screen resize.Dave Airlie
When we resize the front buffer we need to reduce the flush limits appropriately. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-17kms: check for 0 mask for cloned outputs.Dave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-17kms: add cloning support.Dave Airlie
We have to translate from the kernel encoder cloning to the randr connector cloning, we do this by constructing an encoder mask per output and an encoder cloning mask per output then comparing them. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-10-09Revert "kms: setup colormap and gamma correctly."Dave Airlie
This reverts commit 60d9685abddccec17c1a9a5ec48cbe9c92543e0f. which breaks colormap on 1.6 X server Conflicts: src/drmmode_display.c
2009-10-09kms: don't use scratch pixmaps at allDave Airlie
use our own wrapper to allocate a pixmap for wrapping a bo in.
2009-10-09drmmode: reload cursors on modesetDave Airlie
2009-10-07radeon: fix rotation since mixed pixmaps.Dave Airlie
Passing null in here stops the mixed pixmap code doing it wrong, but I'm not 100% sure how it is meant to work, we have the same issue with the real front bo by the looks of it.
2009-10-05kms: only touch gamma stuff on 1.7Dave Airlie
for correct colormap operation you probably want 1.7
2009-10-05kms: don't use scratch pixmaps when copying fbcon.Dave Airlie
scratch pixmaps seem to interact badly with mixed pixmaps, it appears some state may be getting left around in the privates somewhere, since scratch pixmap headers don't get destroyed.
2009-10-05kms: setup colormap and gamma correctly.Dave Airlie
We need to program the gamma at modeset. no need to use old cmap interface at all.
2009-10-03Fix KMS on big endian machines.Michel Dänzer
Requires at least xserver 1.7 to work properly. Also make sure the front buffer is and stays tiled if colour tiling is enabled.
2009-09-30radeon/kms: fallback to shadowfb if kernel report acceleration is offJerome Glisse
This will fallback to shadowfb is GPU accel failed somewhere during KMS kernel init.
2009-09-09kms: add property support.Dave Airlie
this adds support to the userspace DDX to get properties from the kernel and expose them over randr. Its most liberated from the Intel driver.
2009-08-17kms: make tv out match the connector nameDave Airlie
2009-07-19Guard reference to CRTC active field.Michel Dänzer
Fixes build against older xserver.
2009-07-18Set CRTC active flag to TRUE after a successful KMS mode set.Michel Dänzer
Otherwise some things like changing the colour map won't work properly.
2009-07-16Update to xextproto 7.1 support.Peter Hutterer
DPMS header was split into dpms.h (client) and dpmsconst.h (server). Drivers need to include dpmsconst.h if xextproto 7.1 is available. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-02Warning fixes.Michel Dänzer
2009-07-02radeon: add KMS support (still disabled)Dave Airlie
This adds DRI2 + KMS + driver pixmaps support to the driver. I've decided to just do a completely separate KMS driver file instead of hacking the crap out of radeon_driver.c. So now I do the KMS check in radeon_probe.c time and set the DDX pointed up to a completely different set at this stage. This avoids a lot of if (kms) type crap in the code at the expense of making sure we make changes to both files if necessary. This code is still disabled in configure.ac as I broke EXA composite rendering somehow in KMS mode