Commit Graph

318 Commits

Author SHA1 Message Date
Chris Wilson 90b1b220ee 2.20.17 release
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-26 12:51:58 +00:00
Chris Wilson 0f84ecfc3c sna/gen4+: Amalgamate all the gen4-7 vertex buffer emission
Having reduced all the vb code for these generations to the same set of
routines, we can refactor them into a single set of functions.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-20 19:11:04 +00:00
Chris Wilson e474abea7c sna: Promote pinned-batches to run-time detection
Now that the feature has been committed upstream, we can rely on the
runtime detection.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-17 15:38:04 +00:00
Chris Wilson 5b0572503e sna: Enable support for opting out of the kernel CS workaround
Keeping a set of pinned batches in userspace is considerably faster as
we can avoid the blit overhead. However, combining the two approaches
yields even greater performance, as fast as without either w/a, and yet
stable.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-16 23:04:55 +00:00
Chris Wilson a467102a95 2.20.16 release
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-15 10:00:48 +00:00
Chris Wilson 6f675eeaea 2.20.15 release
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-03 10:47:35 +00:00
Chris Wilson 7a904ce839 2.20.14 release
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-11-26 08:48:31 +00:00
Eric Anholt cd2f373da7 configure.ac: Fix bad syntax for test calls 2012-11-20 11:39:44 +00:00
Chris Wilson 8f1afde57d 2.20.13 release
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-11-11 16:16:20 +00:00
Chris Wilson 85ba7e9626 sna: Experiment with using reloc.handle as an index into the execbuffer
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-11-08 17:06:29 +00:00
Chris Wilson 120fa0ef8d sna: Support a fast no relocation changed path
x11perf -copywinwin10 on gm45 with c2d L9400:
  before: 553,000 op/s
  after:  565,000 op/s

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-11-08 08:58:58 +00:00
Chris Wilson 7ff8b1ba54 2.20.12 release
How embarrassing! My fault for rushing :(

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-10-20 16:23:26 +01:00
Chris Wilson 2083e253b3 2.20.11 release
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-10-20 16:07:11 +01:00
Chris Wilson 8238c67298 sna: secure batches accepted upstream, so simply use runtime detection
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-10-17 22:19:01 +01:00
Chris Wilson 41be80a8ca sna: Enable support for SECURE batch buffers
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-10-17 14:02:15 +01:00
Chris Wilson b42d81b63f 2.20.10 release
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-10-14 16:34:09 +01:00
Chris Wilson 4d2dba0ba7 Use path for intel-gen4asm derived from pkg-config
As we use pkg-config to determine whether to use intel-gen4asm, we
should also use it to locate the right version of intel-gen4asm to use.
This allows the user to install the assembler in a non-standard path for
cross-builds and similar.

Reported-by: Josh Tripplet <josh@freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55646
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-10-07 10:49:07 +01:00
Chris Wilson d717a67ff4 configure: Make rebuilding of the gen4 assembly files explicit
References: https://bugs.freedesktop.org/show_bug.cgi?id=55646
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-10-05 10:28:21 +01:00
Chris Wilson a192f8cbc2 2.20.9 release
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-09-29 10:51:59 +01:00
Chris Wilson 9326acc291 Allow compilation of a separate i810 driver
Allow --enable-ums-only as a counter-option to --enable-kms-only in case
the distribution wishes to enable a non-root KMS driver but also offer
a separate UMS driver for i81x.

On the second pass, use "--enable-ums-only --disable-uxa --disable-sna"
to get the trimmed down unaccelerated i810 support.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-09-23 13:41:55 +01:00
Chris Wilson 88502b32d5 2.20.8 release
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-09-16 09:02:46 +01:00
Ian Stakenvicius 3b9259f7ce configure: Make udev dependency optional
In order to support buildbots where the udev headers may exist on the
build system but not the target, we need explicit control over optional
dependencies.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=54942
2012-09-14 21:04:42 +01:00
Chris Wilson 0659711dfa 2.20.7 release
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-09-08 20:02:32 +01:00
Chris Wilson d933f3a796 2.20.6 release
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-09-02 10:30:13 +01:00
Chris Wilson b5c77a6aaf 2.20.5 release
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-26 12:48:18 +01:00
Chris Wilson 5ff6198c93 2.20.4 release
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-18 11:59:56 +01:00
Chris Wilson 5833ef173a 2.20.3 release
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-04 09:32:35 +01:00
Chris Wilson 8ebafa0493 sna: Add the brw assembler
In order to construct programs on the fly to cater for the combinatorial
number of possible shaders, we need an assembler, whilst also taking the
opportunity to remove some of the inefficiencies and mistakes from the
current shaders.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-30 12:57:13 +01:00
Chris Wilson a8ee140624 2.20.2 release
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-27 09:07:16 +01:00
Chris Wilson 83f683b470 2.20.1 release
A good brown paper bag bug release for SNA.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-22 23:20:23 +01:00
Chris Wilson 83ad661bc7 sna: Change the vmap interface name to userptr
This is in common with the other drivers and avoids the conflict with
'vmalloc/vmap' used by the kernel for allocation of contiguous virtual
mappings.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-21 12:53:34 +01:00
Chris Wilson 267429bbb1 sna: Enable runtime detection of set-cacheing ioctl
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-18 21:36:26 +01:00
Chris Wilson 6a18a0936e configure: version bump for 2.20.0 release
The day SNA hits mainstream...

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-15 20:26:30 +01:00
Chris Wilson 95fdd9af5c sna: Enable pixman_glyphs if available
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-14 14:15:11 +01:00
Chris Wilson b5d6a57f12 Enable compilation of SNA by default
But only if we meet the required versions of Xorg and leave UXA as the
default AccelMethod for the time being.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-12 22:16:55 +01:00
Chris Wilson 6c2975ab29 Fix the reporting of whether SNA is configured
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-12 22:14:59 +01:00
Chris Wilson fd15ce65ab sna: Fix build without DRI2
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-12 22:13:50 +01:00
Chris Wilson d25000e1f3 i810: Tidy configure detection for XAA/DGA
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-12 11:59:44 +01:00
Daniel Stone 232217eef8 i810: Make DGA optional
Don't build DGA when it's not available, or when we don't want it.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-10 09:36:40 +01:00
Daniel Stone 78dc0c0474 i810: Make XAA optional
Don't build XAA when it's not available, or when we don't want it.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-07-10 09:32:01 +01:00
Chris Wilson 8a9a17cd09 sna: Improve the check for assertions
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-09 11:41:17 +01:00
Chris Wilson b11bc37684 sna: Simplify the DBG incarnation
It was only ever used in conjunction with HAS_DEBUG_FULL. For debug
purposes it is as easy to redefine DBG locally. By simplifying the DBG
macro we can create it consistently and so reduce the number of compiler
warnings.

Long term, this has to be dynamic. Sigh.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-09 11:41:17 +01:00
Chris Wilson e3e58123d3 sna: Fixup fb wrapper
To accommodate changes in the Xserver and avoid breakage; would have been
much easier had the fb been exported in the first place.
2012-07-08 21:34:21 +01:00
Chris Wilson 9e2ac8a413 sna: Use set-cache-level ioctl to create CPU bo
As an alternative to vmap, we can use the kernel for all memory
management through bo, which is much preferred for its simplicity (i.e.
avoiding introducing even more vm complexity).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-03 20:08:02 +01:00
Chris Wilson 92e1693e5f sna: Validate cpu/gpu damage never overlaps
References: https://bugs.freedesktop.org/show_bug.cgi?id=50477
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-06-18 21:29:51 +01:00
Chris Wilson 392e33a62d sna: Instrument memory/bo allocations for monitoring over time
Hide it behind --enable-debug=memory to avoid incurring the cost for
everybody.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-06-11 12:19:57 +01:00
Chris Wilson 4e984b79cc configure: Correct the help string for --with-default-accel
Prior to finalizing the defaults I changed my mind and realised that the
default had to reflect the current behaviour of someone enabling SNA for
the first time, and not the previous behaviour of --enable-sna to
override UXA. This is so that distro's could offer an SNA enabled DDX
for the brave whilst not affecting their typical no-xorg.conf users.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-06-11 09:02:03 +01:00
Chris Wilson 7614a54188 configure: Harden --with-default-accel against simple mistakes
If the user specifies no options, assume automatic selection. Then
double check we found a valid backend and so avoid later breaking the
build.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-06-10 09:38:32 +01:00
Chris Wilson 318982566b sna/dri: Disable experimental code by default
Since these require non-upstream patches to other components, we don't
want it enabled by default and randomly breaking builds.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-06-07 23:12:21 +01:00
Chris Wilson e456291350 Allow runtime switching of AccelMethod between uxa/sna and even glamor
Section "Device"
  Option "AccelMethod" "uxa/glamor/sna"
EndSection

The appropriate backend must also be enabled at compile time for the
runtime option to be available (i.e. --enable-uxa (default) --enable-sna
--enable-glamor)

Demanded-by: Adam Jackson <ajax@redhat.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50290
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-05-24 19:01:22 +01:00