st/dri: implement createImageWithModifiers in DRIimage
authorVarad Gautam <varad.gautam@collabora.com>
Tue, 30 May 2017 11:53:43 +0000 (17:23 +0530)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 9 Jun 2017 13:12:37 +0000 (14:12 +0100)
commitf61a8ba1688193080ffe7f419fde1605d0f72dc9
treeb500b58d63629efb0bda47e6eb488cef171032e4
parentd33fe8b84e45308a26068d3f015e033de93315b1
st/dri: implement createImageWithModifiers in DRIimage

adds a pscreen->resource_create_with_modifiers() to create textures
with modifier.

v2:
- stylefixes (Emil Velikov)
- don't return selected modifier from resource_create_with_modifiers. we can
  use the winsys_handle to get this.

Signed-off-by: Varad Gautam <varad.gautam@collabora.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de> (v1)
Cc: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
src/gallium/include/pipe/p_screen.h
src/gallium/state_trackers/dri/dri2.c