virgl: support emulating planar image sampling
authorDavid Stevens <stevensd@chromium.org>
Wed, 23 Oct 2019 02:06:17 +0000 (11:06 +0900)
committerGert Wollny <gw.fossdev@gmail.com>
Fri, 8 Nov 2019 17:06:56 +0000 (17:06 +0000)
commit0466239aae7cb38f8e34ef5a778da45035c30f49
tree19fcbee6ea8c9478cfbb2475aadd0b941610b41a
parent084431ce45b3421ef224a16652559713151b122a
virgl: support emulating planar image sampling

Mesa emulates planar format sampling with per-plane samplers. Virgl now
supports this by allowing the plane index to be passed when creating a
sampler view from a planar image. With this change, mesa now passes that
information to virgl.

Signed-off-by: David Stevens <stevensd@chromium.org>
Reviewed-by: Lepton Wu <lepton@chromium.org>
src/gallium/drivers/virgl/virgl_encode.c