iris: Report correct number of planes for planar images
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 28 Aug 2019 19:52:23 +0000 (12:52 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 4 Sep 2019 04:55:23 +0000 (21:55 -0700)
commitf8887909c6683986990474b61afd6d4335a69e41
treeb4533c335cb64caa53a06631e6584ea75901fc29
parent32d458fdff83454b9b3a9f77b9c34640e382b4f3
iris: Report correct number of planes for planar images

We were only handling the modifiers case and not counting the number of
planes in actual planar images.

Fixes Piglit's ext_image_dma_buf_import-export.

Fixes: fc12fd05f56 ("iris: Implement pipe_screen::resource_get_param")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111509
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/iris/iris_resource.c