Bug 110525

Summary: [CTS] dEQP-VK.api.invariance.random crashes
Product: Mesa Reporter: Samuel Pitoiset <samuel.pitoiset>
Component: Drivers/Vulkan/radeonAssignee: mesa-dev
Status: RESOLVED NOTOURBUG QA Contact: mesa-dev
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Samuel Pitoiset 2019-04-26 08:15:25 UTC
$ ./deqp-vk --deqp-case=dEQP-VK.api.invariance.random
Writing test log into TestResults.qpa
dEQP Core git-4e663ef25fe639f467d583e0a145edee66cddd82 (0x4e663ef2) starting..
  target implementation = 'Default'

Test case 'dEQP-VK.api.invariance.random'..
deqp-vk: ../src/amd/vulkan/radv_image.c:1038: radv_image_create: Assertion `info.width % desc->width_divisor == 0' failed.
Aborted (core dumped)

git bisect start
# good: [055f6281d410aa55ac56169973897000d0e0cd42] intel/fs: Don't handle texop_tex for shaders without implicit LOD
git bisect good 055f6281d410aa55ac56169973897000d0e0cd42
# bad: [934f178341f7ec3bb10e3fa1499198e7988b086f] anv/descriptor_set: Don't fully destroy sets in pool destroy/reset
git bisect bad 934f178341f7ec3bb10e3fa1499198e7988b086f
# bad: [5f942db190ef2154fb6512bcac3f42b4df45e0f5] panfrost/midgard: Copy prop for texture registers
git bisect bad 5f942db190ef2154fb6512bcac3f42b4df45e0f5
# good: [5564c38212ac3d3aa2fdfca4da03f10db79a07a4] radv: Update descriptor sets for multiple planes.
git bisect good 5564c38212ac3d3aa2fdfca4da03f10db79a07a4
# bad: [fc9248e13e20ed49e9e672b6cb82fa5b05c48e61] radv: Enable YCBCR conversion feature.
git bisect bad fc9248e13e20ed49e9e672b6cb82fa5b05c48e61
# good: [b769a549ee6325e3759a60af19de034e5666ffdb] radv: Add hashing for the ycbcr samplers.
git bisect good b769a549ee6325e3759a60af19de034e5666ffdb
# bad: [379b82daced4efd90fbf2df26fb99b0a7ba43e05] radv: Add ycbcr subsampled & multiplane formats to csv.
git bisect bad 379b82daced4efd90fbf2df26fb99b0a7ba43e05
# good: [52c1adda21bb9b1dfb06934279866014accd09d1] radv: Add ycbcr format features.
git bisect good 52c1adda21bb9b1dfb06934279866014accd09d1
# first bad commit: [379b82daced4efd90fbf2df26fb99b0a7ba43e05] radv: Add ycbcr subsampled & multiplane formats to csv.

commit 379b82daced4efd90fbf2df26fb99b0a7ba43e05 (refs/bisect/bad)
Author: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Date:   Tue Apr 16 01:05:29 2019 +0200

    radv: Add ycbcr subsampled & multiplane formats to csv.
    
    Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Comment 1 Bas Nieuwenhuizen 2019-04-26 20:58:35 UTC
Can't reproduce:

[bas@bas-workstation vulkan]$ VK_CD_FILENAMES=/home/bas/projects/mesa-build/src/amd/vulkan/dev_icd.json ./deqp-vk -n dEQP-VK.api.invariance.random --deqp-vk-device-id=1
Writing test log into TestResults.qpa
dEQP Core git-5deebf4709ed3e2c3aaad3b8bb8703f236309b97 (0x5deebf47) starting..
  target implementation = 'Default'

Test case 'dEQP-VK.api.invariance.random'..
  Pass (Pass)

DONE!

Test run totals:
  Passed:        1/1 (100.0%)
  Failed:        0/1 (0.0%)
  Not supported: 0/1 (0.0%)
  Warnings:      0/1 (0.0%)
[bas@bas-workstation vulkan]$ VK_CD_FILENAMES=/home/bas/projects/mesa-build/src/amd/vulkan/dev_icd.json ./deqp-vk -n dEQP-VK.api.invariance.random --deqp-vk-device-id=2
Writing test log into TestResults.qpa
dEQP Core git-5deebf4709ed3e2c3aaad3b8bb8703f236309b97 (0x5deebf47) starting..
  target implementation = 'Default'

Test case 'dEQP-VK.api.invariance.random'..
  Pass (Pass)

DONE!

Test run totals:
  Passed:        1/1 (100.0%)
  Failed:        0/1 (0.0%)
  Not supported: 0/1 (0.0%)
  Warnings:      0/1 (0.0%)
Comment 2 Samuel Pitoiset 2019-04-29 08:26:33 UTC
Uhu? I can definitely reproduce it. Do you have assertions enabled in your build?
Comment 3 Bas Nieuwenhuizen 2019-04-29 11:11:26 UTC
Yep mesa-build is my debug build. (Also note that I spelled the env var wrong in the pasted text. I did rerun it with the correct env var which did not result in any changes.)
Comment 4 Samuel Pitoiset 2019-05-06 12:49:03 UTC
This is a CTS bug, see Gerrit #3909 (Bas sent a fix).

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.