Dave Airlie
3a551c1274
drm/test: handle usub being empty
...
fixes a segfault on make check seen in tinderbox
2011-09-26 15:54:13 +01:00
Tapani Pälli
cfee5218b1
xf86drm.h : wrap C code for C++ compilation/linking
...
To enable usage of xf86drm.h from C++ programs/frameworks.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
[ickle: also wrap xf86drmMode.h]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-23 12:58:56 +01:00
Daniel Vetter
194aa1bee6
drm/i915: y tiling on i915G/i915GM is different
...
Luckily the kernel has become extremely paranoid about such matters.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-22 22:20:53 +02:00
Daniel Vetter
630dd26fb4
drm/intel: don't clobber bufmgr->pci_device
...
Otherwise it's pretty hard to differentiate the different chipset
variants.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-22 22:20:09 +02:00
Matt Turner
1459cb9252
modeprint.c: use PRIu64 for printing uint64_t
...
Signed-off-by: Matt Turner <mattst88@gmail.com>
2011-09-21 11:02:55 -04:00
Marcin Slusarz
7d83816141
nouveau: assert argument cannot have side effects
...
... because argument is evaluated only if NDEBUG is not defined
2011-09-18 15:26:16 +02:00
Marcin Slusarz
763b618d55
drm mode: fix drmIoctl wrapper
...
Both drmIoctl and ioctl define second argument as unigned long.
Debugging/tracing tools (like strace or valgrind) on 64-bit machines see
different request value for ioctls with 32nd bit set, because casting
signed int to unsigned long extends 32nd bit to upper word, so 0x80000000
becomes 0xFFFFFFFF80000000)
Nobody noticed because higher 32 bits are chopped off on their way to kernel.
2011-09-18 15:25:18 +02:00
Ben Widawsky
2acaf160df
intel: shared header for shader debugging
...
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
2011-08-01 14:44:58 -07:00
Yuanhan Liu
ce317a6d09
intel: fix the wrong method check for bo_get_subdata
...
It's going to call bo_get_subdata method, but not bo_subdata
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2011-07-20 10:46:45 -07:00
Chih-Wei Huang
8d055890d9
Specify the return type explicitly.
2011-07-12 09:52:32 +01:00
Chris Wilson
6dd804c5a9
configure: version bump for 2.4.26 release
...
Push the new Intel API for use by mesa.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-04 13:01:50 +01:00
Chris Wilson
9d77603d8b
intel: Add interface to query aperture sizes.
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-04 13:01:11 +01:00
Chris Wilson
61be94018a
libkms: All current BO_TYPE are 32bpp
...
... so request a 32bpp dumb buffer rather than a 16bpp.
Fixes modetest and friends.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-05-14 11:17:23 +01:00
Chris Wilson
ba11501bb9
configure: version bump for 2.4.25 release
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-04-11 08:25:42 +01:00
Ilija Hadzic
be8802a941
libdrm: (revised) vblank wait on crtc > 1
...
Hi Alex,
Enclosed is a revised version of the patch sent on Mar 18, against
the master branch of the drm userspace (i.e. libdrm). Details
summarised in this thread:
http://lists.freedesktop.org/archives/dri-devel/2011-March/009499.html
This patch reconciles libdrm with the the kernel change that Dave
pushed this morning. It *supersedes* the previously sent patch (i.e.
apply it to the master branch as it exists at the time of this writing,
not as an incremental patch to the one sent previously).
Regards,
Ilija
Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-04-04 11:04:03 -04:00
Chris Wilson
f395b0a25c
intel: Also handle mrb_exec fallback with ring == I915_EXEC_RENDER
...
Reported-by: Oliver McFadden <oliver.mcfadden@nokia.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-04-04 08:59:39 +01:00
Dave Airlie
5cb554a0d6
drm_mode: fix types on recently added ioctls
2011-03-30 06:11:21 +10:00
Daniel Vetter
06ebbf7c2c
Cleanup gen2 tiling confusion
...
A tile on gen2 has a size of 2kb, stride of 128 bytes and 16 rows.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-26 15:04:04 +01:00
Javier Jardón
fd3ed34a20
build: Update autotools configuration
...
Replace some deprecated autoconf macros and use the new libtool
syntax
2011-03-21 13:43:43 +00:00
Dave Airlie
3b04c73650
libdrm: oops fix get cap return value.
2011-03-04 15:48:31 +10:00
Dave Airlie
bb99465366
libkms: add dumb support
...
this uses the drm cap interface to check if the dumb ioctl
is supported.
2011-03-04 15:25:51 +10:00
Ben Skeggs
5c6c6913d1
Implement drmGetCap() to query device/driver capabilities
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-04 15:25:51 +10:00
Dave Airlie
4473a7e823
drm: add dumb interface
2011-03-04 14:46:36 +10:00
Kristian Høgsberg
edd41db37d
Build modetest for all chipsets, always build modeprint
2011-03-03 21:35:28 -05:00
Matt Turner
3293eb95ca
don't try to build modetest without libkms
...
Signed-off-by: Matt Turner <mattst88@gmail.com>
2011-03-03 21:27:24 -05:00
Chris Wilson
a926a043b8
configure: Bump version to 2.4.24
...
New kernel headers.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-03-01 18:24:14 +00:00
Chris Wilson
0209428b39
intel: Add I915_PARAM_HAS_RELAXED_DELTA
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-03-01 16:02:29 +00:00
Daniel Vetter
e6018c25ca
intel: Fixup for the fix for relaxed tiling on gen2
...
This is Fail.
First patch to libdrm, and I've borked it up.
Noticed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-02-22 19:11:33 +01:00
Daniel Vetter
9a71ed93f4
intel: fix relaxed tiling on gen2
...
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-02-22 18:53:56 +01:00
Benjamin Franzke
a697fb6aca
modetest: Do no flip twice to a current front buffer
...
The incorrect order was:
fb, other_fb, other_fb, fb_id, other_fb, ..
2011-02-17 20:40:30 +01:00
Benjamin Franzke
51c6ae4c3a
tests/modeprint: Output masks as hex numbers
2011-02-17 14:09:12 +01:00
Benjamin Franzke
1776246785
tests/modeprint: Remove needless dependency on drm_intel
2011-02-17 14:07:58 +01:00
Benjamin Franzke
8fef29093f
modetest: Create buffers using libkms
2011-02-17 14:06:07 +01:00
Benjamin Franzke
c75fe3ae73
configure.ac: ac_define HAVE_RADEON
2011-02-17 10:46:35 +01:00
nobled
ed7d177f66
libkms/radeon: Add backend
...
Todo: What tiling should be set on scanout buffers?
Haven't tested besides compiling it.
2011-02-17 09:26:30 +01:00
Chris Wilson
36d4939343
intel: Remember named bo
...
... and if asked to open a bo by the same global name, return a fresh
reference to the previously allocated buffer.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-14 10:18:39 +00:00
Chris Wilson
53581b6210
intel: Set the public handle after opening by name
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-14 10:15:31 +00:00
Chris Wilson
550fe2ca3b
intel: compile fix for previous commit after rebasing
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-01-12 15:06:25 +00:00
Chris Wilson
6717b7579f
intel: Fallback to old exec if no mrb_exec is available
...
Reported-by: Torsten Hilbrich <torsten.hilbrich@secunet.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=33016
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-01-12 11:00:13 +00:00
Ben Skeggs
bad5242a59
nouveau: fix up reloc_emit() to accept NULL target buffer
...
The nvc0 gallium drivers passes NULL here to indicate to the memory manager
that a buffer is being used, but without creating an actual reloc.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2010-12-21 12:46:51 +10:00
Ben Skeggs
45cfb9cf08
nouveau: split pushbuf macros specific to nv04-nv50 out, and add nvc0
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2010-12-21 12:46:51 +10:00
Ben Skeggs
ba731e7b58
nouveau: nvc0 drm has no concept of "notifier block"
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2010-12-21 12:46:50 +10:00
Chris Wilson
0184bb1c6d
intel: Export CONSTANT_BUFFER addressing mode
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-19 13:01:15 +00:00
Chris Wilson
760c01a6af
configure: Bump version to 2.4.23
...
To export new kernel API for Intel's 2010Q4 release.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-10 12:10:46 +00:00
Chris Wilson
000a0972c2
tests: Update for ENOENT returns from unknown handles
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-10 12:10:13 +00:00
Chris Wilson
537703fd48
intel: Reorder need_fence vs fenced_command to avoid fences on gen4
...
gen4+ hardware doesn't use fences for GPU access and the older kernel
doesn't expect userspace to make such a mistake. So don't.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=32190
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-07 20:34:22 +00:00
Dave Airlie
39e5e98224
drm: don't do the create the node ourselves if we have udev.
...
this can remove nodes it shouldn't, let udev run the show.
this is needed for reliably GPU switch.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-12-07 14:26:09 +10:00
Chris Wilson
af3d282afb
intel: If the command is fenced inform the kernel
...
... but only account for a fenced used if the object is tiled.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-03 10:51:49 +00:00
Marek Olšák
8420743301
radeon: silence valgrind warnings by zeroing memory
2010-12-02 04:17:18 +01:00
Chris Wilson
1443bea488
intel: Add a forward declaration of struct drm_clip_rect
...
... so that intel_bufmgr.h can be compiled standalone.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-11-25 16:59:20 +00:00