From: Nanley Chery Date: Tue, 17 May 2016 22:28:01 +0000 (-0700) Subject: anv/device: Fix viewportBoundsRange X-Git-Tag: upstream/17.1.0~9685 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ac08adfb4af3157171a565e353f608365c5dde5;p=platform%2Fupstream%2Fmesa.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 54810d9..5b5b095 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,