protonscr

test_shader_fp16 using non aligned UBO aligned address for readonly 64bit pointers

vkd3dclosed
HansKristian-Work/vkd3d-proton#2803 · opened 2026-01-23 by djdeath · updated 2026-01-30 · 2 comments · github
Ddjdeath 2026-01-23 github

Software information

The test test_shader_fp16 is failing when we try to enable promotion of 64bit pointers used readonly from the shader to push constants.

VKD3D_TEST_FILTER=test_shader_fp16 ./build/tests/d3d12
d3d12: ../src/intel/vulkan/genX_cmd_draw.c:202: get_push_range_address: Assertion `address % ANV_UBO_ALIGNMENT == 0' failed.

The expectation is that the pointers should be aligned to minUniformBufferOffsetAlignment, but in this test it's only 32 (not 64 from the reported minUniformBufferOffsetAlignment)

System information

Log files

N/A

HHansKristian-Work maintainer 2026-01-30 github

The test is valid. It is using readonly BDA from root SRV, which does not need alignment.

Ddjdeath 2026-01-30 github

Thanks, I should have checked the alignment value on the pointer access.

Launch options