Module: vkd3d Branch: master Commit: 90e6e418a38ac03ad8ca2045070d761d7ad9c84f URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/90e6e418a38ac03ad8ca2045070d76...
Author: Francisco Casas fcasas@codeweavers.com Date: Mon Sep 5 18:06:44 2022 -0300
vkd3d-shader/hlsl: Use the base type of the array elements in write_sm1_type().
---
libs/vkd3d-shader/hlsl_sm1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/vkd3d-shader/hlsl_sm1.c b/libs/vkd3d-shader/hlsl_sm1.c index 2219ef56..ba22925e 100644 --- a/libs/vkd3d-shader/hlsl_sm1.c +++ b/libs/vkd3d-shader/hlsl_sm1.c @@ -272,7 +272,7 @@ static void write_sm1_type(struct vkd3d_bytecode_buffer *buffer, struct hlsl_typ } }
- type->bytecode_offset = put_u32(buffer, vkd3d_make_u32(sm1_class(type), sm1_base_type(type))); + type->bytecode_offset = put_u32(buffer, vkd3d_make_u32(sm1_class(type), sm1_base_type(array_type))); put_u32(buffer, vkd3d_make_u32(type->dimy, type->dimx)); put_u32(buffer, vkd3d_make_u32(array_size, field_count)); put_u32(buffer, fields_offset);