radv: bump minTexelBufferOffsetAlignment to 4
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 9 Oct 2019 08:37:04 +0000 (10:37 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 9 Oct 2019 11:22:58 +0000 (11:22 +0000)
The spec has probably been misinterpreted during RADV bringup.

This fixes GPU hangs with dEQP-VK.binding_model.*offset_nonzero*.

Fixes: f4e499ec791 ("radv: add initial non-conformant radv vulkan driver")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c

index efd3eb394179933d3d12766b6191251e92204b8f..1973079b45d9aa63e7997fa3db1132725117517b 100644 (file)
@@ -1169,7 +1169,7 @@ void radv_GetPhysicalDeviceProperties(
                .viewportBoundsRange                      = { INT16_MIN, INT16_MAX },
                .viewportSubPixelBits                     = 8,
                .minMemoryMapAlignment                    = 4096, /* A page */
-               .minTexelBufferOffsetAlignment            = 1,
+               .minTexelBufferOffsetAlignment            = 4,
                .minUniformBufferOffsetAlignment          = 4,
                .minStorageBufferOffsetAlignment          = 4,
                .minTexelOffset                           = -32,