summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2013-01-11radeon/r200: program RE_WIDTH_HEIGHT properlyAlex Deucher
Values are inclusive. Mesa already sets these correctly. Also bump EXA/Xv limits from 2047 to 2048. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2013-01-11Make radeon_glamor_create_textured_pixmap() return TRUE without USE_GLAMOR.Michel Dänzer
Otherwise rotation won't work when glamor support isn't built in. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2013-01-11Make CRTC shadow pixmaps usable by glamor.Michel Dänzer
Fixes rotation with glamor. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2013-01-11DRI2/r[345]xx: 16 bit depth buffers use square micro tiling.Michel Dänzer
Fixes piglit sanity.tests (with 3D drivers which allocate depth buffers from the X server). Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2013-01-11DRI2: Properly use buffer depth passed in by client.Michel Dänzer
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2013-01-10Drop support for X servers older than 1.7.Michel Dänzer
The main purpose is to drop DRI2 compatibility code paths which are getting awkward to deal with and at this point are probably only tested lightly if at all. xserver 1.7 was released more than 3 years ago, and 1.6.2 was already required before. Mostly mechanical, there's probably potential for more cleanups. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2013-01-07radeon: fix damage reporting for slave pixmapsDave Airlie
This is definitely more correct, not sure if it'll fix any bugs. Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-01-03DRI2: limit the swap rate when CRTC is in DPMS-off stateIlija Hadzic
If drawable is displayed on a CRTC and relevant CRTC is in DPMS off state, defer the swap by a fixed (hard-coded) time. This patch fixes a bug that caused an application to render at uncontrolled rate when CRTC goes into DPMS "off" state, thus thrashing the GPU and CPU and likely offsetting the power savings achieved by shutting off the display. Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2013-01-03DRI2: change signature of radeon_dri2_drawable_crtcIlija Hadzic
Return pointer to the CRTC instead of CRTC ID and expose consider_disabled option in arguments of this function. Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2013-01-03video: add option to include disabled CRTCs in best CRTC searchIlija Hadzic
This patch adds an option called consider_disabled to radeon_pick_best_crtc function. If this option is set and searching for best-fit CRTC yields nothing, the search will be widened to include CRTCs in DPMS "off" state. The new option is not used yet; it will be in the patches to follow. v2: Do not look at the CRTC mode, we only care about its box. Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2012-12-27glamor: Enable full 2D acceleration for SI as well.Michel Dänzer
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2012-12-27glamor: Release the drawable after passing to glamor_push_pixelsMichel Dänzer
Ported from xf86-video-intel commit ca5c028c2b4d9bf02002acd484054fe427ea8d09 . Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2012-12-18exa/Xv: fix coordinate limits on AVIVO IGPsAlex Deucher
RS6xx asics are r4xx derived, but seem to have r3xx limitations as far as clipping is concerned. Spotted by Michel on IRC. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=58469 Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2012-12-12Remove dead option definitions.Michel Dänzer
These were only used with UMS. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2012-12-11Remove local variables total_size_bytes.Michel Dänzer
Not actually used for anything. Refactoring gone wrong? Also remove a comment that doesn't seem to make sense anymore. Stumbled over this due to a warning by clang: ../../src/radeon_kms.c:1562:6: warning: variable 'total_size_bytes' is uninitialized when used here [-Wuninitialized] total_size_bytes += (64 * 4 * 64); ^~~~~~~~~~~~~~~~ ../../src/radeon_kms.c:1557:25: note: initialize the variable 'total_size_bytes' to silence this warning int total_size_bytes; ^ = 0 Reviewed-by: Alex Deucher <aleander.deucher@amd.com> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2012-12-11Remove unused local variable 'path'.Michel Dänzer
../../src/radeon_probe.c: In function 'radeon_platform_probe': ../../src/radeon_probe.c:270:11: error: unused variable 'path' [-Werror=unused-variable] Reviewed-by: Alex Deucher <aleander.deucher@amd.com> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2012-12-11Remove dead code flagged by gcc -Wunused-but-set-variable.Michel Dänzer
Reviewed-by: Alex Deucher <aleander.deucher@amd.com> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2012-12-06radeon: fix ring count in R300PrepareTexturedVideoAlex Deucher
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=31364 Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2012-12-04radeon: avoid copying over itself ddx fbJerome Glisse
In some rare case it seems that the old fb could already be the ddx fb. As copying from the same bo will trigger a ttm deadlck detection which will result in infinite kernel/userspace loop. Avoid doing any copy as anyway it's useless. Signed-off-by: Jerome Glisse <jglisse@redhat.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2012-11-21radeon: add new SI pci idAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2012-11-15radeon: avoid segfault when pixmap exceed GPU capabilitiesJerome Glisse
We might get a request for a pixmap/drawable that is too big for GPU capabilities in the dri2 get buffer path. In face of such things just return NULL to dri2 get buffer request. The GL driver should then use something like transparent black to avoid something too ugly on the screen. Signed-off-by: Jerome Glisse <jglisse@redhat.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2012-11-03radeon/radeon_platform_probe: fix Zaphod mode breakageIlija Hadzic
Using radeon_platform_probe function breaks the Zaphod mode because it attempts to call xf86AddEntityToScreen multiple times, but nobody calls xf86SetEntityShared prior to that. Consequently, calls for all but first device instance fail. Prior to introduction of platform bus, the logic was that the Probe function would make the entity sharable, which would cause Xserver to later make it shared prior to adding it to screen. With the platform bus loading, add to screen happens in the probe function so we have to make it shared there. v2: do not make the entity shared if it was not previously marked sharable. Should fix: https://bugs.freedesktop.org/show_bug.cgi?id=56680 https://bugs.freedesktop.org/show_bug.cgi?id=56663 Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
2012-11-02Revert "radeon/radeon_platform_probe: fix Zaphod mode breakage"Alex Deucher
This reverts commit 39eac3104c2f08b4d78aab3f88fd104301eb4711. This breaks non-zaphod configurations with xserver 1.13. See: https://bugs.freedesktop.org/show_bug.cgi?id=56680 https://bugs.freedesktop.org/show_bug.cgi?id=56663
2012-11-01radeon/radeon_platform_probe: fix Zaphod mode breakageIlija Hadzic
Using radeon_platform_probe function breaks the Zaphod mode because it attempts to call xf86AddEntityToScreen multiple times, but nobody calls xf86SetEntityShared prior to that. Consequently, calls for all but first device instance fail. Prior to introduction of platform bus, the logic was that the Probe function would make the entity sharable, which would cause Xserver to later make it shared prior to adding it to screen. With the platform bus loading, add to screen happens in the probe function so we have to make it shared there. Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
2012-10-28radeon: turn on 2D tiling by default on r6xx-caymanMarek Olšák
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2012-10-28radeon: log if 2D tiling is enabledMarek Olšák
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2012-10-16radeon: add new pci ids for SIAlex Deucher
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2012-10-16radeon/dri2: fix the window->pixmap math properly.Dave Airlie
Okay kwin did things different, and I really hope this time this is the correct transformation operation. It works here with gears under kwin and under mutter and under xcompmgr. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-10-11radeon/dri2: fix damage reporting on pageflipDave Airlie
when you use MPX or slave usb devices, the damage posting was incorrect, and resulted in misrendered boxes on the screen. Fix it by reporting damage correctly. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-26Remove mibstore.hAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-09-13glamor: Force acceleration for DRI2 copies.Michel Dänzer
Improves performance of non-pageflipped 3D apps on SI. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2012-09-12glamor: Fix DRI2 crash introduced by PRIME changes.Michel Dänzer
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2012-09-10radeon: fix build against old serversDave Airlie
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=54711 Reported-by: wolput@onsneteindhoven.nl Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-10radeon: don't fail to load if we have no modes and gpu driver.Dave Airlie
This ensures radeon loads on output less GPUs as a GPU driver. There are server bugs that also need to be fixed. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-05radeon: fix typo in glamor pathsDave Airlie
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=54519 Reported-By: scaty@dcinformatique.com Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-04radeon: fix build against older serversDave Airlie
Another silly one. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-04radeon/dri2: fix build against older servers.Dave Airlie
Older servers won't have DRI2UpdatePrime, so fix build. bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=54433 Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-03radeon: add capability and provider supportDave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-03radeon: allocated shared pixmaps as untiled gtt.Dave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-03radeon: add pixmap sharing hooks.Dave Airlie
This hooks into EXA and the dirty tracking to add sharing and output offload support. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-03radeon: add dri2 offload support.Dave Airlie
This adds the new dri2 interfaces required for radeon to be offloaded to. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-03radeon: add shared support to pixmaps.Dave Airlie
this just adds the interface and shared support to the pixmap. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-03radeon: add platform bus loading support.Dave Airlie
This allows the radeon driver to be loaded via the platform bus mechanism. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-03radeon: damage full screen after pageflipDave Airlie
in order for offload to work we need to cause a full screen damage to be registered after pageflip. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-03ati: fix stub driver loader to load all drivers properlyDave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-08-15Implement ->driverFuncAdam Jackson
Copied from fbdev, makes it so we can run without iopl. Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-08-15Don't bother to include vbe.hAdam Jackson
The only VBE code here went away when we dropped UMS. Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-08-06radeon: add some new SI pci idsAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2012-07-13Deal more gracefully with DRI2 being unavailable at build or run time.Michel Dänzer
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2012-07-10Initial SI support.Michel Dänzer
Defaults to shadowfb. 3D acceleration is available with glamor. 2D acceleration is disabled until the radeonsi driver can handle glamor's shaders. v2: add chip flags (Alex Deucher) Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>