summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bump the version for releaselibdrm-2.4.492.4.49baserock/libdrm-2.4.49Marek Olšák2013-11-231-1/+1
|
* radeon: handle P16 pipe configs for HawaiiMarek Olšák2013-11-231-0/+6
|
* radeon: don't overallocate stencil by 4 on SI and CIKMichel Dänzer2013-11-231-2/+3
| | | | | Signed-off-by: Marek Olšák <marek.olsak@amd.com> Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
* radeon: implement 2D tiling for CIKMarek Olšák2013-11-233-13/+624
| | | | | | | | | Bug fixes and simplification by Marek. We have to use the tile index of 0 for non-MSAA depth-stencil after all. Signed-off-by: Marek Olšák <marek.olsak@amd.com> Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
* radeon: fix mipmap level 0 and 1 alignment for SI and CIKMichel Dänzer2013-11-231-10/+12
| | | | | | Signed-off-by: Marek Olšák <marek.olsak@amd.com> Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
* intel: Use memset instead of VG_CLEARIan Romanick2013-11-201-1/+1
| | | | | | | | | | The ioctl expects that certain fields will be zeroed, so we should allow the helper function to actually work in non-Valgrind builds. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reported-by: Zhenyu Wang <zhenyuw@linux.intel.com> Reviewed-by: Damien Lespiau <damien.lespiau@intel.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
* libdrm/mode: Update the encoder and connector definesThomas Hellstrom2013-11-191-0/+5
| | | | | | | Update the defines to match the kernel drm_mode.h Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
* libdrm: bump to 2.4.48libdrm-2.4.482.4.48Ian Romanick2013-11-151-1/+1
|
* intel: Add support for GPU reset status query ioctlIan Romanick2013-11-153-0/+58
| | | | | | | | | | | | | | | | | | | | | | | I would have just used the drmIoctl interface directly in Mesa, but the ioctl needs some data from the drm_intel_context that is not exposed outside libdrm. This ioctl is in the drm-intel-next tree as b635991. v2: Update based on Mika's kernel work. v3: Fix compile failures from last-minute typos. Sigh. v4: Import the actual changes from the kernel i915_drm.h. Only comments on some fields of drm_i915_reset_stats differed. There are still some deltas between the kernel i915_drm.h and the one in libdrm, but those can be resolved in other patches. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> [v3] Reviewed-by: Damien Lespiau <damien.lespiau@intel.com> Cc: Mika Kuoppala <mika.kuoppala@intel.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
* radeon: add hawaii pci idsAlex Deucher2013-11-131-0/+13
| | | | Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* radeon: add hawaii chip familyAlex Deucher2013-11-131-0/+1
| | | | Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* Revert "intel: Add support for GPU reset status query ioctl"Dave Airlie2013-11-083-56/+0
| | | | | | | | This reverts commit 6335e1d28c422050024bcf4100c4fb3a5bac2afb. No taxation without representation, in other words no userspace without kernel stuff being in a stable location, either drm-next but I'll accept drm-intel-next for intel specific stuff.
* intel: Add support for GPU reset status query ioctlIan Romanick2013-11-073-0/+56
| | | | | | | | | | | | | | | I would have just used the drmIoctl interface directly in Mesa, but the ioctl needs some data from the drm_intel_context that is not exposed outside libdrm. v2: Update based on Mika's kernel work. v3: Fix compile failures from last-minute typos. Sigh. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: Mika Kuoppala <mika.kuoppala@intel.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
* intel/bdw: Update MI_BATCH_BUFFER_START for aub dumpsDamien Lespiau2013-11-071-2/+8
| | | | | | | | | | The command now takes a 48bits address and is thus 1 dword longer. v2 (Ben): commit message: s/byte/dword (Eric) Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
* intel/bdw/aub: Update AUB trace block writes for 48-bit addressing.Kenneth Graunke2013-11-071-3/+9
| | | | | | | | | | | Since our aub file dumping's GTT handling is totally fake, we always put everything in the low 4GB anyway and shouldn't ever need to set AddressHigh to anything other than 0. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> [ben: slight commit message change] Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
* intel/bdw: Add gen8 to the decode initDamien Lespiau2013-11-071-1/+3
| | | | | | | Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
* intel/bdw: Handle gen8 bufmgr_initBen Widawsky2013-11-071-0/+2
| | | | | | | | [bwidawsk: Added Damien's SOB] Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
* intel/bdw: Add broadwell chipset IDsBen Widawsky2013-11-071-1/+21
| | | | | | | v2: Rename s/<SECRET>/IRIS/ Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
* nouveau: prevent undefined behavior in nouveau_pushbuf_reloc with gcc-4.8Maarten Lankhorst2013-11-071-1/+2
| | | | | | | Reported-by: ronald645@gmail.com Bisected-by (gcc): Andreas Radke <a.radke@arcor.de> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71116 Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
* Add DRM_MODE_PAGE_FLIP_ASYNC defineKeith Packard2013-11-062-1/+3
| | | | | | | This exposes the kernel API for performing asynchronous flips Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Eric Anholt <eric@anholt.net>
* intel: Add MI_LOAD_REGISTER_MEM to intel_decode.c.Kenneth Graunke2013-10-291-0/+1
| | | | | Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ben Widawsky <benjamin.widawsky@intel.com>
* intel: Add the Gen6+ version of MI_REPORT_PERF_COUNT to intel_decode.c.Kenneth Graunke2013-10-291-0/+1
| | | | | Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ben Widawsky <benjamin.widawsky@intel.com>
* libdrm: bump to 2.4.47libdrm-2.4.472.4.47Ben Widawsky2013-10-111-1/+1
|
* intel: Set bo size from lseek if kernel supports itKristian Høgsberg2013-10-101-1/+11
| | | | | | | | | | The various create and open functions set the buffer size, but drm_intel_bo_gem_create_from_prime() is an exception. In the 3.12 kernel we can now use lseek on the prime fd to determine the size of the bo. Use that and override the userprovided size. If the kernel doesn't support this, we get an error and fall back to the user provided size. Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
* drm: Introduce a drmSetClientCap() wrapperDamien Lespiau2013-09-302-0/+9
| | | | | | | | That wraps around the new DRM_SET_CLIENT_CAP ioctl. v2: SET_CAP -> SET_CLIENT_CAP renaming Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
* drm: Sync the DRM_SET_CLIENT_CAP ioctl definitionDamien Lespiau2013-09-301-0/+16
| | | | | | v2: SET_CAP -> SET_CLIENT_CAP renaming Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
* drm: Synchronize the stereo 3D mode flags from the kernel headersDamien Lespiau2013-09-302-28/+49
| | | | | | v2: stereo layouts are now an enum (Daniel Vetter) Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
* radeon: fix pitch alignment for non-power-of-two mipmaps on SIMarek Olšák2013-09-291-3/+11
| | | | | | | | | | This fixes VM protection faults. I have a new piglit test which can iterate over all possible widths, heights, and depths (including NPOT) and tests mipmapping with various texture targets. After this is committed, I'll make a new release of libdrm and bump the libdrm version requirement in Mesa.
* configure: add AC_LANG_SOURCE call within AC_COMPILE_IFELSEEmil Velikov2013-09-241-1/+1
| | | | | | | | | | | Documentation states that AC_*_IFELSE has to use AC_LANG_SOURCE or friends in order to generate the source code to compile. AC_LINK_IFELSE already handles this, thus convert AC_COMPILE_IFELSE to silence the final autoconf warnings. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
* libdrm: Make some drm headers compatible with gcc -std=c89 -pedanticDaniel Kurtz2013-09-222-4/+4
| | | | | | | | | | | | | | The following minor changes were needed to these headers: * Convert // comments to /* */ * No , after final member of enum With these changes, these header files can be included by a program that is built with gcc options: -std=c89 -Werror -pedantic Signed-off-by: Daniel Kurtz <djkurtz@chromium.org> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Eric Anholt <eric@anholt.net>
* radeon: Fix tiling mode index for 1D tiled depth/stencil surfaces on CIKMichel Dänzer2013-09-182-3/+14
| | | | Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
* freedreno: add missing NOSYNC flagRob Clark2013-09-111-2/+2
| | | | Signed-off-by: Rob Clark <robclark@freedesktop.org>
* modetest: allow setting a scaling factor when showing planeIlia Mirkin2013-09-111-5/+15
| | | | | Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Rob Clark <robdclark@gmail.com>
* modetest: add a -D option to specify a device to be usedIlia Mirkin2013-09-111-4/+10
| | | | | | | | This is helpful for differentiating between multiple devices that use the same module. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Rob Clark <robdclark@gmail.com>
* radeon: pad CS to 8 DWAlex Deucher2013-09-061-0/+3
| | | | | | | | Aligns the IB to 8 DWs. The aligns the IB to the CP fetch size. r6xx also require at least 4 DW alignment to avoid a hw bug. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* radeon: add berlin pci idsAlex Deucher2013-09-061-0/+22
| | | | Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* intel: Update package name and description in libdrm_intel.pcEmil Velikov2013-08-301-2/+2
| | | | | | | | | Currently the package name and description duplicate that of the core libdrm. Update those to reflect reality. Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
* freedreno: set automake options to include subdir-objectsEmil Velikov2013-08-301-0/+2
| | | | | | | | Handles automake complains about lack of forward-compatibility, due to the source files in the kgsl and msm backends/folders. Cc: Rob Clark <robclark@freedesktop.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* freedreno: use local drm.h over the system oneEmil Velikov2013-08-302-2/+2
| | | | | | | Otherwise build will fail, as drm/drm.h is not available. Cc: Rob Clark <robclark@freedesktop.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* tests/modetest: silence compiler warning about uninitialised variablesEmil Velikov2013-08-301-3/+3
| | | | | | | | The compiler is unaware of that we have at least one crts/connector/plane thus it complains that some of our variables will be used uninitialised. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Rob Clark <robdclark@gmail.com>
* tests/*version: add missing string.h headerEmil Velikov2013-08-302-0/+2
| | | | | | | | Prodives memset() and strlen(), used in tests/setversion tests/getversion respectively. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Rob Clark <robdclark@gmail.com>
* tests: add msmRob Clark2013-08-302-2/+2
| | | | Signed-off-by: Rob Clark <robclark@freedesktop.org>
* freedreno: add support for msm drmRob Clark2013-08-289-1/+951
| | | | | | | This adds support for the "msm" backend, using the upstream msm drm/kms driver. Signed-off-by: Rob Clark <robclark@freedesktop.org>
* freedreno: support either kgsl or msmRob Clark2013-08-2815-603/+1103
| | | | | | | | Split out common code and backend. Current backend is for 'kgsl' android driver, but a new backend will provide support for the upstream msm drm/kms driver. Signed-off-by: Rob Clark <robclark@freedesktop.org>
* modetest: Allocate NV buffers large enough for the two planesLaurent Pinchart2013-08-051-1/+18
| | | | | | | Multiple the image height by 1.5 for NV12/NV21 and by 2 for NV16/NV61 to make room for the chroma plane. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
* modetest: Fix line stride in SMPTE YUV packet pattern generatorLaurent Pinchart2013-08-051-6/+6
| | | | | | | The line stride passed to the function is expressed in bytes, there's no need to multiply it by 2. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
* modetest: Try all possible encoders for a connectorLaurent Pinchart2013-08-051-10/+25
| | | | | | | | When building the pipeline, instead of using only the encoders attached to a connector, take all possible encoders into account to locate a CRTC. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
* modetest: Support pipes with multiple connectorsLaurent Pinchart2013-08-051-54/+157
| | | | | | | The -s argument can now take a list of connectors. Configure all of them in cloned mode using a single CRTC. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
* modetest: Rename struct connector_arg to struct pipe_argLaurent Pinchart2013-08-051-77/+85
| | | | | | | This prepares the code for handling multiple connectors in a single pipeline in a cloned configuration. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
* modetest: Split mode setting and plane setupLaurent Pinchart2013-08-051-32/+72
| | | | | | | There's not reason to require setting a mode to test planes. Split the two operations. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>