Module: vkd3d
Branch: master
Commit: 75c2af3640809619d8b6c55e1c9eec66d0ac2cb5
URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/75c2af3640809619d8b6c55e1c9ee…
Author: Conor McCarthy <cmccarthy(a)codeweavers.com>
Date: Fri Oct 6 14:14:23 2023 +1000
vkd3d-shader/spirv: When declaring a CBV initialise the register with the register index range.
The declaration instruction register contains id, range first, and range
last. The backend includes range first in the variable name. After commit
e8b3561252 it was always zero, and since commit 67f0196c33 it is
UINT_MAX, so constant buffers are named, e.g., "%cb0_4294967295".
---
libs/vkd3d-shader/spirv.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libs/vkd3d-shader/spirv.c b/libs/vkd3d-shader/spirv.c
index b3f6947b..1c8b52e6 100644
--- a/libs/vkd3d-shader/spirv.c
+++ b/libs/vkd3d-shader/spirv.c
@@ -5633,8 +5633,10 @@ static void spirv_compiler_emit_cbv_declaration(struct spirv_compiler *compiler,
struct vkd3d_symbol reg_symbol;
unsigned int size;
- vsir_register_init(®, VKD3DSPR_CONSTBUFFER, VKD3D_DATA_FLOAT, 1);
+ vsir_register_init(®, VKD3DSPR_CONSTBUFFER, VKD3D_DATA_FLOAT, 3);
reg.idx[0].offset = register_id;
+ reg.idx[1].offset = range->first;
+ reg.idx[2].offset = range->last;
size = size_in_bytes / (VKD3D_VEC4_SIZE * sizeof(uint32_t));
Module: vkd3d
Branch: master
Commit: 31ce7c3a385c23deb430f8ef30ac72d287f780ee
URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/31ce7c3a385c23deb430f8ef30ac7…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Thu Oct 5 22:34:28 2023 +0200
vkd3d-shader/hlsl: Get rid of the vkd3d_sm4_* forward declarations in hlsl.h.
These are no longer needed outside of tpf.c.
---
libs/vkd3d-shader/hlsl.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/libs/vkd3d-shader/hlsl.h b/libs/vkd3d-shader/hlsl.h
index e45256bc..6e6d8227 100644
--- a/libs/vkd3d-shader/hlsl.h
+++ b/libs/vkd3d-shader/hlsl.h
@@ -25,9 +25,6 @@
#include "vkd3d_d3dcommon.h"
#include "vkd3d_d3dx9shader.h"
-enum vkd3d_sm4_register_type;
-enum vkd3d_sm4_swizzle_type;
-
/* The general IR structure is inspired by Mesa GLSL hir, even though the code
* ends up being quite different in practice. Anyway, here comes the relevant
* licensing information.