[Git][wine/vkd3d][master] 4 commits: vkd3d-shader/dxil: Emit SAMPLER, UAV and RESOURCE registers with only 2 indices.
Henri Verbeet pushed to branch master at wine / vkd3d Commits: da7c9694 by Giovanni Mascellani at 2024-10-03T19:08:33+02:00 vkd3d-shader/dxil: Emit SAMPLER, UAV and RESOURCE registers with only 2 indices. DXIL handles are used to represent descriptors. Currently they are translated to registers of the appropriate type (depending on the descriptor type) and three indices. The first two indices are used to represent the descriptor itself (through its signature and array index), and are filled when the handle itself is created. The last index is used with constant buffers to address the data inside the buffer itself, and it goes unused with other descriptor types. As currently implemented, however, registers for descriptors other than constant buffers are still created with three indices, even if the last one is useless and set to -1. In the interest of creating more sensible VSIR code, this is now removed: DXIL handles are created with just two indices; a third one is added when accessing constant buffers, and nothing is changed for other descriptor types. - - - - - ab230383 by Giovanni Mascellani at 2024-10-03T19:08:33+02:00 vkd3d-shader/ir: Validate indices for SAMPLER registers. - - - - - 3ab68c1e by Giovanni Mascellani at 2024-10-03T19:08:33+02:00 vkd3d-shader/ir: Validate indices for RESOURCE registers. - - - - - 0e50825b by Giovanni Mascellani at 2024-10-03T19:08:33+02:00 vkd3d-shader/ir: Validate indices for UAV registers. - - - - - 2 changed files: - libs/vkd3d-shader/dxil.c - libs/vkd3d-shader/ir.c View it on GitLab: https://gitlab.winehq.org/wine/vkd3d/-/compare/cebe0a8b954c5e907fceb651c3940... -- View it on GitLab: https://gitlab.winehq.org/wine/vkd3d/-/compare/cebe0a8b954c5e907fceb651c3940... You're receiving this email because of your account on gitlab.winehq.org.
participants (1)
-
Henri Verbeet (@hverbeet)