diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-05-27 16:52:51 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-05-28 12:48:25 +0100 |
commit | 62b557065edc0555f2bf83b0eed9169329a2f2ba (patch) | |
tree | 3cd8419364bac04e4c09a4ae9cd429b147760188 /src/sna/sna_video_textured.c | |
parent | 35291d2db813f75fedcdca9920a40592acd3cca3 (diff) |
sna: Use magic upload buffers for video textures
So that we may benefit from the caching of buffers and the automatic
selection of the preferred upload method.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_video_textured.c')
-rw-r--r-- | src/sna/sna_video_textured.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/sna/sna_video_textured.c b/src/sna/sna_video_textured.c index e1806d52..bc117a4a 100644 --- a/src/sna/sna_video_textured.c +++ b/src/sna/sna_video_textured.c @@ -273,13 +273,6 @@ sna_video_textured_put_image(ScrnInfoPtr scrn, assert(kgem_bo_size(frame.bo) >= frame.size); } else { - frame.bo = kgem_create_linear(&sna->kgem, frame.size, - CREATE_GTT_MAP); - if (frame.bo == NULL) { - DBG(("%s: failed to allocate bo\n", __FUNCTION__)); - return BadAlloc; - } - if (!sna_video_copy_data(sna, video, &frame, buf)) { DBG(("%s: failed to copy frame\n", __FUNCTION__)); kgem_bo_destroy(&sna->kgem, frame.bo); |