Module: vkd3d
Branch: master
Commit: 98b5e2c6e01199d714d18fccfe54826a680aecbf
URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/98b5e2c6e01199d714d18fccfe548…
Author: Conor McCarthy <cmccarthy(a)codeweavers.com>
Date: Tue Apr 4 17:28:48 2023 +1000
vkd3d-shader/ir: Insert hull shader control point input declarations if no control point phase is defined.
The SPIR-V backend will emit a default control point phase. Inserting
inputs into the IR allows handling of declarations via the usual path
instead of an ad hoc implementation which may not match later changes
to input handling.
---
libs/vkd3d-shader/ir.c | 86 ++++++++++++++-
libs/vkd3d-shader/spirv.c | 178 +++----------------------------
libs/vkd3d-shader/vkd3d_shader_private.h | 11 +-
3 files changed, 112 insertions(+), 163 deletions(-)
Module: vkd3d
Branch: master
Commit: 14295a224d9fe2e487bf3a67f4f2fc5218e1b17c
URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/14295a224d9fe2e487bf3a67f4f2f…
Author: Conor McCarthy <cmccarthy(a)codeweavers.com>
Date: Tue Apr 4 17:55:05 2023 +1000
vkd3d-shader/ir: Normalise control point phase output registers to include the control point id.
In SPIR-V the address must include the invocation id, but in TPF it
is implicit. Move the register index up one slot and insert an
OUTPOINTID relative address.
---
libs/vkd3d-shader/ir.c | 101 +++++++++++++++++++++++++++++++
libs/vkd3d-shader/spirv.c | 32 +++-------
libs/vkd3d-shader/vkd3d_shader_private.h | 3 +
3 files changed, 111 insertions(+), 25 deletions(-)