loader/dri3: Avoid resizing existing buffers in dri3_find_back_alloc
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 14 Sep 2017 10:39:18 +0000 (12:39 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 5 Oct 2017 07:17:12 +0000 (09:17 +0200)
commit1b8e0bed6989386ce096fc0dce92cd0f3df8ea88
tree3484ec3e709c7a60f3becf2927ff9920d77e6e10
parent622f5e1d9be1915d0982ece4aab99b77e30b1fd5
loader/dri3: Avoid resizing existing buffers in dri3_find_back_alloc

Resize only in loader_dri3_get_buffers(),
where the dri driver has a chance to immediately update the viewport.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
src/loader/loader_dri3_helper.c