summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_device.c
diff options
context:
space:
mode:
authorNanley Chery <nanley.g.chery@intel.com>2016-05-17 15:28:01 -0700
committerNanley Chery <nanley.g.chery@intel.com>2016-05-18 16:01:50 -0700
commit7ac08adfb4af3157171a565e353f608365c5dde5 (patch)
treed1de90306009d3d832099cfe531a0e13789150a3 /src/intel/vulkan/anv_device.c
parent61b67892522c89800541ed4f266ab88e5f1db620 (diff)
downloadexternal_mesa3d-7ac08adfb4af3157171a565e353f608365c5dde5.zip
external_mesa3d-7ac08adfb4af3157171a565e353f608365c5dde5.tar.gz
external_mesa3d-7ac08adfb4af3157171a565e353f608365c5dde5.tar.bz2
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 <nanley.g.chery@intel.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r--src/intel/vulkan/anv_device.c2
1 files changed, 1 insertions, 1 deletions
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,