[Mesa-dev] [PATCH] anv: bump the texture gather offset limits
Ilia Mirkin
imirkin at alum.mit.edu
Sun Nov 27 21:49:51 UTC 2016
This matches what NVIDIA and AMD hardware expose.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
Not sure what the true HW limit is here. On NVIDIA, the true HW limit really
is -32/31 though. As an aside, according to vulkan.gpuinfo.org, the Intel
Windows driver also exposes -32/31.
With the updated limits on SKL, everything still passes:
./deqp-vk --deqp-visibility=hidden --deqp-case='*texture_gather*'
Test run totals:
Passed: 762/1524 (50.0%)
Failed: 0/1524 (0.0%)
Not supported: 762/1524 (50.0%)
Warnings: 0/1524 (0.0%)
src/intel/vulkan/anv_device.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 16aba59..d20dc0f 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -555,8 +555,8 @@ void anv_GetPhysicalDeviceProperties(
.minStorageBufferOffsetAlignment = 1,
.minTexelOffset = -8,
.maxTexelOffset = 7,
- .minTexelGatherOffset = -8,
- .maxTexelGatherOffset = 7,
+ .minTexelGatherOffset = -32,
+ .maxTexelGatherOffset = 31,
.minInterpolationOffset = -0.5,
.maxInterpolationOffset = 0.4375,
.subPixelInterpolationOffsetBits = 4,
--
2.7.3
More information about the mesa-dev
mailing list