[Mesa-dev] [PATCH] anv/device: Fix viewportBoundsRange

Anuj Phogat anuj.phogat at gmail.com
Wed May 18 19:09:13 UTC 2016


On Tue, May 17, 2016 at 4:23 PM, Nanley Chery <nanleychery at gmail.com> wrote:
> From: Nanley Chery <nanley.g.chery at intel.com>
>
> 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 at intel.com>
> ---
>  src/intel/vulkan/anv_device.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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,
> --
> 2.8.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>


More information about the mesa-dev mailing list