wine-staging/patches/vkd3d-latest/0003-vkd3d-shader-Fix-compiler-warning.patch
2023-09-29 18:11:42 +10:00

31 lines
1.3 KiB
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

From f624fad55b83330c84a883efa46a1541325db9aa Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Date: Fri, 29 Sep 2023 17:22:13 +1000
Subject: [PATCH 3/3] vkd3d-shader: Fix compiler warning.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
vkd3d-shader/tpf.c:3810:39: warning: passing argument 2 of sm4_register_from_node from incompatible pointer type [-Wincompatible-pointer-types]
vkd3d-shader/tpf.c:4750:59: warning: passing argument 3 of sm4_register_from_deref from incompatible pointer type [-Wincompatible-pointer-types]
---
libs/vkd3d/libs/vkd3d-shader/vkd3d_shader_private.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/vkd3d/libs/vkd3d-shader/vkd3d_shader_private.h b/libs/vkd3d/libs/vkd3d-shader/vkd3d_shader_private.h
index af75ef3bda8..2e9a98a6fc3 100644
--- a/libs/vkd3d/libs/vkd3d-shader/vkd3d_shader_private.h
+++ b/libs/vkd3d/libs/vkd3d-shader/vkd3d_shader_private.h
@@ -758,7 +758,7 @@ void vsir_register_init(struct vkd3d_shader_register *reg, enum vkd3d_shader_reg
struct vkd3d_shader_dst_param
{
struct vkd3d_shader_register reg;
- DWORD write_mask;
+ unsigned int write_mask;
DWORD modifiers;
DWORD shift;
};
--
2.42.0