vkd3d-shader: Lower shader model 1/2 inter-stage I/O to a flat array.

An alternative is that we stash the reg_type in the signature, but this seems
far simpler for the backend to deal with.
This commit is contained in:
Zebediah Figura
2023-10-27 12:44:08 -05:00
committed by Alexandre Julliard
parent 3bafee344d
commit 3f52fda8ad
Notes: Alexandre Julliard 2024-01-04 23:09:22 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/527
3 changed files with 76 additions and 27 deletions

View File

@@ -518,8 +518,6 @@ static struct signature_element *find_signature_element_by_register_index(
return NULL;
}
#define SM1_COLOR_REGISTER_OFFSET 8
static bool add_signature_element(struct vkd3d_shader_sm1_parser *sm1, bool output,
const char *name, unsigned int index, enum vkd3d_shader_sysval_semantic sysval,
unsigned int register_index, bool is_dcl, unsigned int mask)