diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-02 14:34:23 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-02 14:34:23 +0000 |
commit | 1c653786895fc30be0e88455ce5f9caf9adc835d (patch) | |
tree | 88246622b610bb07cf47361bf49f4c383eabc28e /src/sna/sna_video.c | |
parent | 29ec36ff063472e0744af99aa81ed5ad8e291a36 (diff) |
sna: Pass usage hint for creating linear buffers
As we wish to immediate map the vertices buffers, it is beneficial to
search the linear cache for an existing mapping to reuse first.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_video.c')
-rw-r--r-- | src/sna/sna_video.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_video.c b/src/sna/sna_video.c index ebc3860f..56cf260f 100644 --- a/src/sna/sna_video.c +++ b/src/sna/sna_video.c @@ -104,7 +104,8 @@ sna_video_buffer(struct sna *sna, sna_video_free_buffers(sna, video); if (video->buf == NULL) - video->buf = kgem_create_linear(&sna->kgem, frame->size); + video->buf = kgem_create_linear(&sna->kgem, frame->size, + CREATE_GTT_MAP); return video->buf; } |