Henri Verbeet pushed to branch master at wine / vkd3d
Commits: d9c4a257 by Francisco Casas at 2024-12-09T16:09:16+01:00 vkd3d-shader/dxbc: Parse the SFI0 ROV requirement.
- - - - - d3108de7 by Francisco Casas at 2024-12-09T16:09:16+01:00 vkd3d-shader/hlsl: Store ROV feature requirement in the vsir_program.
- - - - - 37a61bf4 by Francisco Casas at 2024-12-09T16:09:16+01:00 vkd3d-shader/hlsl: Store the global flags in the vsir program.
- - - - - 1d290bf5 by Francisco Casas at 2024-12-09T16:09:16+01:00 vkd3d-shader/hlsl: Store SM4 sampler declarations in the vsir program.
Looking at the implementation of shader_sm4_read_dcl_sampler(), vsir stores the resource index range both in
vkd3d_shader_instruction.declaration.sampler.range
and in the
vkd3d_shader_instruction.declaration.sampler.src.reg.idx[1-2]
indexes, so we do the same.
It is also worth noting that for shader models lower than 5.1, vsir has a normalization on the ins->declaration src register indexes. Refer to the following comment:
/* SM5.1 places a symbol identifier in idx[0] and moves * other values up one slot. Normalize to SM5.1. */
on shader_sm4_read_param().
This normalization is also added to the generated vsir instructions.
- - - - - d2feb33b by Francisco Casas at 2024-12-09T16:09:16+01:00 vkd3d-shader/hlsl: Store SM4 texture declarations in the vsir program.
- - - - -
6 changed files:
- libs/vkd3d-shader/dxbc.c - libs/vkd3d-shader/dxil.c - libs/vkd3d-shader/hlsl.h - libs/vkd3d-shader/hlsl_codegen.c - libs/vkd3d-shader/tpf.c - libs/vkd3d-shader/vkd3d_shader_private.h
View it on GitLab: https://gitlab.winehq.org/wine/vkd3d/-/compare/b484288a8294ee37b35c73ea5028c...