radv: bump texel offsets to align with radeonsi
authorDave Airlie <airlied@redhat.com>
Thu, 22 Dec 2016 00:35:46 +0000 (10:35 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 23 Dec 2016 04:36:50 +0000 (14:36 +1000)
it appears from the amdgpu-pro results the hw can do more,
but let's just align with radeonsi for now.

No CTS regressions.

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

index 7c6dee67318e64cafe622eea28dd59c435078178..5f9094091616094113772d8fcc39d2144d649a99 100644 (file)
@@ -496,10 +496,10 @@ void radv_GetPhysicalDeviceProperties(
                .minTexelBufferOffsetAlignment            = 1,
                .minUniformBufferOffsetAlignment          = 4,
                .minStorageBufferOffsetAlignment          = 4,
-               .minTexelOffset                           = -8,
-               .maxTexelOffset                           = 7,
-               .minTexelGatherOffset                     = -8,
-               .maxTexelGatherOffset                     = 7,
+               .minTexelOffset                           = -32,
+               .maxTexelOffset                           = 31,
+               .minTexelGatherOffset                     = -32,
+               .maxTexelGatherOffset                     = 31,
                .minInterpolationOffset                   = 0, /* FIXME */
                .maxInterpolationOffset                   = 0, /* FIXME */
                .subPixelInterpolationOffsetBits          = 0, /* FIXME */