Chris Wilson
bfd2bb4027
sna: Correct dependencies for DRI2
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-16 22:15:39 +00:00
Chris Wilson
3771387ad1
Compile out UXA if so desired
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-16 22:15:39 +00:00
Chris Wilson
edbeab8c4e
sna: Reduce and clarify dependencies
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-16 22:15:39 +00:00
Chris Wilson
78d4e99fc9
sna: And keep unity happy
...
Rewrite the DRI layer to avoid the various bugs and shortcomings of the
Xserver and interfacing with mesa.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38732
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=39044
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-16 22:14:15 +00:00
Chris Wilson
aac022cbb3
sna: Optimise single pixel transfers
...
Surprisingly frequent.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14 19:49:29 +00:00
Chris Wilson
5647e2981d
sna/damage: Always reduce damage for testing PIXMAN_REGION_OUT
...
Reported-by: Clemens Eisserer <linuxhippy@gmail.com>
References: https://bugs.freedesktop.org/show_bug.cgi?id=42414
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14 14:13:10 +00:00
Chris Wilson
405b015fe2
sna: Be explicit in all sna_damage_contains_box() tests
...
Clarify the exact in/out/maybe expected result when testing.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14 14:06:49 +00:00
Chris Wilson
5d23149647
sna: Remove redundant 'can_fill_spans()'
...
Spans are almost always accelerated now...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14 14:06:49 +00:00
Chris Wilson
ae9de984ad
sna: Convert non-FillSolid rectilinear lines to boxes
...
And render using the tiled/stippled rect routines instead.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14 13:49:50 +00:00
Chris Wilson
e861e816f5
sna: Convert non-FillSolid rectilinear segments to boxes
...
And render using the tiled/stippled rect routines instead.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14 13:39:34 +00:00
Chris Wilson
6fc2928f57
sna: tidy assignment of composite damage
...
Make sure that the damage is always set, even if only to NULL, so that
we are safe if in future the operation state is not initially cleared.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14 13:05:00 +00:00
Chris Wilson
99338ebe61
sna: Check whether damage can be reduced to all-damage on moving to GPU
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14 12:13:58 +00:00
Chris Wilson
00d1c539e4
sna/damage: Add a little more verbosity to debugging
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14 11:20:32 +00:00
Chris Wilson
60c0fc101a
sna: Refactor some common code into the common destroy-gpu-bo function
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14 11:16:20 +00:00
Chris Wilson
571457e9a4
sna: Be more thorough discarding fences for large objects
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14 10:32:04 +00:00
Chris Wilson
e33dfbe3c0
sna/damage: Verify that all-damage covers the entire pixmap after reduction
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14 09:50:24 +00:00
Chris Wilson
f033172d2f
sna: Fix debug compilation
...
Reported-by: Clemens Eisserer <linuxhippy@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42887
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14 09:32:53 +00:00
Chris Wilson
0c405595fb
sna: Downgrade tiling in order to fit within fence constraints
...
Fixes a later assert that the fenced size is valid for kgem_create_2d()
Reported-by: Clemens Eisserer <linuxhippy@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42888
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14 09:30:02 +00:00
Chris Wilson
1baff9f8cf
uxa/gen4+: Re-emit composite invariant after video
...
Reported-by: Ben Hutchings <ben@decadent.org.uk>
Bugzilla: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=635953
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-14 08:48:40 +00:00
Chris Wilson
7ad3b377a3
sna/video: Use the right pointer for unmapping
...
Don't just deference any old random pointer, use the one we actually
mapped in the first place!
Reported-by: Matti Hamalainen <ccr@tnsp.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42880
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-13 17:53:11 +00:00
Chris Wilson
8da8809d03
sna/video: Simplify check for 915G[M] which is simply gen==30
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-13 17:49:23 +00:00
Chris Wilson
cac335b979
sna/video: Constify a couple of attribute arrays
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-13 13:13:03 +00:00
Chris Wilson
e592eb93db
configure: Version bump for 2.16.902 snapshot
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-13 11:16:45 +00:00
Chris Wilson
56707b97dc
NEWS: Details for 2.16.902
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-13 11:16:12 +00:00
Chris Wilson
f0acc6c0f1
sna/composite: Attempt to reduce the damage is the operation is contained
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-13 09:57:10 +00:00
Chris Wilson
87147b63e9
sna/damage: Reduce the damage for evaluating sna_damage_is_all
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-12 20:08:13 +00:00
Chris Wilson
e8799cdea4
sna: Be stricter and disallow allocation of large fenced objects
...
When allocating objects, we need to check the size of the full fenced
regions against the mappable limits in order to be able to mmap the
object later.
References: https://bugs.freedesktop.org/show_bug.cgi?id=42813
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-12 12:19:31 +00:00
Chris Wilson
0269ec5533
sna: Handle incremental uploads from PutImage
...
PutImage rarely uploads the entire image inside a single request,
instead breaking up into scanline segments to fit within the protocol
limits. A few optimisations are based on detecting when we can discard
the GPU bo for an all-dirty CPU pixmap, which are useful in this case so
check for an entirely dirty pixmap following an incremental PutImage.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-12 11:54:52 +00:00
Chris Wilson
ed68f1b00a
sna/gen7: Fix PRIMITIVE command
...
The topology is now an extra dword rather than an embedded field in the
command.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-12 11:54:52 +00:00
Chris Wilson
991ffcb60a
sna: Reset the source counter if we completely dirty the CPU pixmap
...
For a long lived pixmap which we are repeatedly using for upload and
copying to other pixmaps, we don't want to keep to maintain a GPU
buffer. So instead, reset the source counter if we discard the GPU bo
and treat the pixmap as purely CPU.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-11 23:22:35 +00:00
Chris Wilson
403a4dd353
sna: Defer source migration for a solitary upload via CopyArea
...
Try to avoid allocating a GPU pixmap for PutImage followed by CopyArea.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-11 23:19:33 +00:00
Chris Wilson
11acfaa623
sna/glyph: Tweak the small mask threshold
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-11 23:19:32 +00:00
Chris Wilson
c6e6ae1829
sna/glyphs: Cache the glyph pixman_image_t wrapper
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-11 14:37:07 +00:00
Chris Wilson
8f50950f46
sna/gen7: Remove stray no-op from GEN7_3DSTATE_SBE
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-11 00:16:14 +00:00
Chris Wilson
6a8338fc08
sna: Begin debugging gen7
...
This is the stub of the decoder, sufficient to give details of the ops
within the batch and to keep the debugger happy.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-11 00:15:44 +00:00
Chris Wilson
2309f19638
sna/dri: Apply the damage for fullscreen async blits
...
Otherwise gnome-shell forgets to update. Eventually, I'll get the async
pageflipping bits merged into the Xserver and this path and its extra
bw wastage will be history! But still I'll be undermined by the
compositor, grrr.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-10 21:01:00 +00:00
Chris Wilson
e65c2c54f5
sna: Store the sna pointer on the pixmap for cheap lookups
...
A large part of the function preamble overhead is the multi-indirection
lookup for retrieving the sna pointer. We can eliminate most of these by
storing a pointer on the Pixmap as well, which we often need to lookup
anyway.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-10 21:01:00 +00:00
Chris Wilson
bddac63de2
sna: Defer purging a target buffer
...
This is to keep the sanity checks upon the caches happy by keeping a
potential flush out of the inactive cache.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-10 21:01:00 +00:00
Chris Wilson
9083f7edcb
sna/gen3: Fixup some false asserts
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-10 21:01:00 +00:00
Chris Wilson
ea01f76819
configure: Force full-debug builds to disable compiler optimisations
2011-11-10 21:01:00 +00:00
Chris Wilson
a72563464f
sna/gen3: Clear the video shader flag upon batch reset
...
Fixes regression from 3252b46e1 .
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-10 00:57:42 +00:00
Chris Wilson
3252b46e11
sna/gen3: Pack video frames
...
If you're going to benchmark, you may as well do so favourably.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-09 15:27:34 +00:00
Chris Wilson
8e92675952
sna/video: Pass texture video limits to the client
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-09 14:44:54 +00:00
Chris Wilson
bca58ff6f0
sna: Clear kgem->busy when all requests have been processed
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-09 14:18:57 +00:00
Chris Wilson
8fdbd01c94
sna/video: Use the normal bo cache for texture video streams
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-09 14:00:16 +00:00
Chris Wilson
436a786845
sna: Track purgeability separately from reusability
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-09 12:54:33 +00:00
Chris Wilson
2699c01a39
sna: Handle non-reusable bo more correctly during retire
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-09 12:27:52 +00:00
Chris Wilson
fcc89d2660
sna: Safety first; make all flinked bo unreusable
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-09 12:25:43 +00:00
Chris Wilson
f62b9f94f6
sna/video: Pass cropped source dimensions along with frame data
...
So pack all the relevant details into the same structure.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-09 10:26:49 +00:00
Chris Wilson
5809b1ad93
sna/video: Tidy up copy routines
...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-09 09:41:53 +00:00