radv: set some proper values for interp offset limits.
authorDave Airlie <airlied@redhat.com>
Thu, 22 Dec 2016 01:52:30 +0000 (11:52 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 23 Dec 2016 04:36:54 +0000 (14:36 +1000)
These are taken from the amdgpu-pro driver, and cause no
CTS change.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c

index 5f9094091616094113772d8fcc39d2144d649a99..47be5f743f53f6cf0cd80662d40fe8cf444d7b0a 100644 (file)
@@ -500,9 +500,9 @@ void radv_GetPhysicalDeviceProperties(
                .maxTexelOffset                           = 31,
                .minTexelGatherOffset                     = -32,
                .maxTexelGatherOffset                     = 31,
-               .minInterpolationOffset                   = 0, /* FIXME */
-               .maxInterpolationOffset                   = 0, /* FIXME */
-               .subPixelInterpolationOffsetBits          = 0, /* FIXME */
+               .minInterpolationOffset                   = -2,
+               .maxInterpolationOffset                   = 2,
+               .subPixelInterpolationOffsetBits          = 8,
                .maxFramebufferWidth                      = (1 << 14),
                .maxFramebufferHeight                     = (1 << 14),
                .maxFramebufferLayers                     = (1 << 10),