OSDN Git Service

radv: Fix rasterization precision bits.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 2 Jan 2019 16:53:41 +0000 (17:53 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 11 Jan 2019 19:19:09 +0000 (19:19 +0000)
commit7f29d45f915b00aa335bf3555388c3c8ff1c1bc4
tree717d47b6e520ea4c4425b11247a15f9e027ee77f
parenteac2b2161e06d44ab4e6662e5d4ee0648846a86e
radv: Fix rasterization precision bits.

Note that these limits are exact, not a "precision is at least x",
as texel coords also get snapped to a multiple of this step size
before filtering.

This fixes CTS tests

dEQP-VK.texture.explicit_lod.2d.sizes.31x55_nearest_linear_mipmap_nearest_repeat
dEQP-VK.texture.explicit_lod.2d.sizes.57x35_nearest_linear_mipmap_nearest_repeat

Fixes: f4e499ec791 "radv: add initial non-conformant radv vulkan driver"
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109151
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
(cherry picked from commit 3cc940277a45285d9932ed62398d7a54d2afffb8)
src/amd/vulkan/radv_device.c