vkd3d-shader/spirv: Pass a uint32_t write mask to spirv_compiler_emit_abs().

This commit is contained in:
Henri Verbeet 2023-12-06 20:11:02 +01:00 committed by Alexandre Julliard
parent 97acca715e
commit b4da553d28
Notes: Alexandre Julliard 2024-01-11 23:14:12 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/552

View File

@ -3997,7 +3997,7 @@ static void spirv_compiler_emit_execution_mode1(struct spirv_compiler *compiler,
} }
static uint32_t spirv_compiler_emit_abs(struct spirv_compiler *compiler, static uint32_t spirv_compiler_emit_abs(struct spirv_compiler *compiler,
const struct vkd3d_shader_register *reg, DWORD write_mask, uint32_t val_id) const struct vkd3d_shader_register *reg, uint32_t write_mask, uint32_t val_id)
{ {
struct vkd3d_spirv_builder *builder = &compiler->spirv_builder; struct vkd3d_spirv_builder *builder = &compiler->spirv_builder;
uint32_t type_id; uint32_t type_id;
@ -4027,7 +4027,7 @@ static uint32_t spirv_compiler_emit_neg(struct spirv_compiler *compiler,
} }
static uint32_t spirv_compiler_emit_src_modifier(struct spirv_compiler *compiler, static uint32_t spirv_compiler_emit_src_modifier(struct spirv_compiler *compiler,
const struct vkd3d_shader_register *reg, DWORD write_mask, const struct vkd3d_shader_register *reg, uint32_t write_mask,
enum vkd3d_shader_src_modifier modifier, uint32_t val_id) enum vkd3d_shader_src_modifier modifier, uint32_t val_id)
{ {
switch (modifier) switch (modifier)