st/mesa: don't use pipe_surface for passing information about EGLImage
authorMarek Olšák <marek.olsak@amd.com>
Fri, 29 Sep 2017 21:13:12 +0000 (23:13 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 2 Oct 2017 23:27:18 +0000 (01:27 +0200)
commit2d62817da9ddbcfb8d353ca96cc6ae36da3862e0
tree03823f6fd2c06ddaef5660cc58760e92a30597c4
parentd50ead53b8ba5f40a4f3764eb82bb8e010fdae07
st/mesa: don't use pipe_surface for passing information about EGLImage

Use st_egl_image instead. radeonsi doesn't like when we create
a pipe_surface with PIPE_FORMAT_NV12.

This fixes NV12 texturing on radeonsi using kmscube.

Cc: 17.1 17.2 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_cb_eglimage.c