anv/device: Fix viewportBoundsRange
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 17 May 2016 22:28:01 +0000 (15:28 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Wed, 18 May 2016 23:01:50 +0000 (16:01 -0700)
Align with the spec requirement that the range must be at least
[−2 × maxViewportDimensions, 2 × maxViewportDimensions − 1]. Our
hardware supports this.

Fixes dEQP-VK.api.info.device.properties

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94896
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/intel/vulkan/anv_device.c

index 54810d97d9e79f742c392249acac17b86b2886a2..5b5b095f28d4834a42d30722b198c252872c9193 100644 (file)
@@ -502,7 +502,7 @@ void anv_GetPhysicalDeviceProperties(
       .maxSamplerAnisotropy                     = 16,
       .maxViewports                             = MAX_VIEWPORTS,
       .maxViewportDimensions                    = { (1 << 14), (1 << 14) },
-      .viewportBoundsRange                      = { -16384.0, 16384.0 },
+      .viewportBoundsRange                      = { INT16_MIN, INT16_MAX },
       .viewportSubPixelBits                     = 13, /* We take a float? */
       .minMemoryMapAlignment                    = 4096, /* A page */
       .minTexelBufferOffsetAlignment            = 1,