wsi: query the ICD's max dimensions instead of hard-coding them
authorEric Engestrom <eric.engestrom@intel.com>
Sun, 25 Nov 2018 11:23:26 +0000 (11:23 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Fri, 8 Feb 2019 18:54:57 +0000 (18:54 +0000)
commite8e544436cbe1fc6139334a2314896b42f88882e
tree4d2138ff27ebfe8cec9d29ae64ffc6498378df6c
parentb031c643491a92a5574c7a4bd659df33f2d89bb6
wsi: query the ICD's max dimensions instead of hard-coding them

anv and radv both happened to already return 2^14 for these, but
querying the ICD is safer and will help if vdreno (or whatever it's
called) doesn't have the same max.

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/vulkan/wsi/wsi_common.c
src/vulkan/wsi/wsi_common.h
src/vulkan/wsi/wsi_common_display.c
src/vulkan/wsi/wsi_common_private.h
src/vulkan/wsi/wsi_common_wayland.c
src/vulkan/wsi/wsi_common_x11.c