vl/dri3: handle the case of different GPU(v4.2)
authorNayan Deshmukh <nayan26deshmukh@gmail.com>
Tue, 20 Sep 2016 04:52:10 +0000 (10:22 +0530)
committerChristian König <christian.koenig@amd.com>
Tue, 20 Sep 2016 09:17:02 +0000 (11:17 +0200)
commit853e80f5a09f85477167aac2789a91a2755e23f0
tree7ff01eb6e753fc80e557ec2cbbd6bb8df88699a9
parent40d787ab05784bf2cc1443805d7fde56c68ba025
vl/dri3: handle the case of different GPU(v4.2)

In case of prime when rendering is done on GPU other then the
server GPU, use a seprate linear buffer for each back buffer
which will be displayed using present extension.

v2: Use a seprate linear buffer for each back buffer (Michel)
v3: Change variable names and fix coding style (Leo and Emil)
v4: Use PIPE_BIND_SAMPLER_VIEW for back buffer in case when
    a seprate linear buffer is used (Michel)
v4.1: remove empty line
v4.2: destroy the context and handle the case when
      create_context fails (Emil)

Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Acked-by: Michel Dänzer <michel.daenzer@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
src/gallium/auxiliary/vl/vl_winsys_dri3.c