From: Nanley Chery Date: Tue, 17 May 2016 22:28:01 +0000 (-0700) Subject: anv/device: Fix viewportBoundsRange X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ac08adfb4af3157171a565e353f608365c5dde5;p=mesa.git anv/device: Fix viewportBoundsRange 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 Reviewed-by: Anuj Phogat --- diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 54810d97d9e..5b5b095f28d 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -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,