[Mesa-dev] [PATCH] radv/gfx9: gfx9 has buffer sizing rules like pre-VI.

Dave Airlie airlied at gmail.com
Thu Aug 24 23:44:12 UTC 2017


From: Dave Airlie <airlied at redhat.com>

This fixes:
dEQP-VK.robustness.buffer_access.* on GFX9.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/amd/vulkan/radv_image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index f561919..560d90e 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -186,7 +186,7 @@ radv_make_buffer_descriptor(struct radv_device *device,
 	state[1] = S_008F04_BASE_ADDRESS_HI(va >> 32) |
 		S_008F04_STRIDE(stride);
 
-	if (device->physical_device->rad_info.chip_class < VI && stride) {
+	if (device->physical_device->rad_info.chip_class != VI && stride) {
 		range /= stride;
 	}
 
-- 
2.9.4



More information about the mesa-dev mailing list