renderer-gl: Avoid retrieving the EGL image it direct_display flag was set
authorMarius Vlad <marius.vlad@collabora.com>
Tue, 12 Nov 2019 10:18:20 +0000 (12:18 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Thu, 21 Nov 2019 12:07:54 +0000 (14:07 +0200)
commit9ad82d59969d4168721fa2ac1b9c18da8a038414
tree96416e47fb8c55405e56f0e7128f5530b4afe74a
parent81bada58db87eb5b726f4e1f4b41b2fce063e650
renderer-gl: Avoid retrieving the EGL image it direct_display flag was set

As we avoid importing the buffer in the GPU, when attaching the buffer
we'll not have a valid image to retrieve it from, and as such we'll
avoid touching and setting the surface state shader.

This adds also 'direct_display' to the surface state and with it, sets the
surface state 'direct_display' member whenever the imported buffer will
have the direct-display member set.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
libweston/renderer-gl/gl-renderer.c