From 476a2a0a962fa8a145c612f63b72eeb4dc3a84f3 Mon Sep 17 00:00:00 2001 From: nimlgen <138685161+nimlgen@users.noreply.github.com> Date: Wed, 24 Sep 2025 21:45:58 +0300 Subject: [PATCH] test_qcom: update (#12293) --- test/device/test_qcom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/device/test_qcom.py b/test/device/test_qcom.py index 4794cdb177..827a364d1d 100644 --- a/test/device/test_qcom.py +++ b/test/device/test_qcom.py @@ -10,10 +10,11 @@ class TestQcom(unittest.TestCase): def __validate(imgdt, expected_pitch): img = dev.allocator.alloc(imgdt.shape[0] * imgdt.shape[1] * 16, options:=BufferSpec(image=imgdt)) - pitch = (img.descriptor[2] & 0x1fffff80) >> 7 + pitch = img.texture_info.pitch assert pitch == expected_pitch, f"Failed pitch for image: {imgdt}. Got 0x{pitch:X}, expected 0x{expected_pitch:X}" dev.allocator.free(img, imgdt.shape[0] * imgdt.shape[1] * 16, options) + # Match opencl pitches for perf __validate(dtypes.imageh((1, 201)), 0x680) __validate(dtypes.imageh((16, 216)), 0x700) __validate(dtypes.imageh((16, 9)), 0x80)