From: Nikolay Sivov nsivov@codeweavers.com
--- libs/vkd3d-shader/hlsl.c | 2 +- libs/vkd3d-shader/hlsl.h | 8 ++++---- libs/vkd3d-shader/hlsl_codegen.c | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/libs/vkd3d-shader/hlsl.c b/libs/vkd3d-shader/hlsl.c index 24822e97..13f63562 100644 --- a/libs/vkd3d-shader/hlsl.c +++ b/libs/vkd3d-shader/hlsl.c @@ -943,7 +943,7 @@ void hlsl_cleanup_deref(struct hlsl_deref *deref) hlsl_src_remove(&deref->offset); }
-/* Initializes a simple variable derefence, so that it can be passed to load/store functions. */ +/* Initializes a simple variable dereference, so that it can be passed to load/store functions. */ void hlsl_init_simple_deref_from_var(struct hlsl_deref *deref, struct hlsl_ir_var *var) { memset(deref, 0, sizeof(*deref)); diff --git a/libs/vkd3d-shader/hlsl.h b/libs/vkd3d-shader/hlsl.h index 24d0f517..162383ee 100644 --- a/libs/vkd3d-shader/hlsl.h +++ b/libs/vkd3d-shader/hlsl.h @@ -179,7 +179,7 @@ struct hlsl_type struct { struct hlsl_type *type; - /* Array lenght, or HLSL_ARRAY_ELEMENTS_COUNT_IMPLICIT if it is unknown yet while parsing. */ + /* Array length, or HLSL_ARRAY_ELEMENTS_COUNT_IMPLICIT if it is unknown yet while parsing. */ unsigned int elements_count; } array; /* Format of the data contained within the type if the base_type is HLSL_TYPE_TEXTURE or @@ -222,7 +222,7 @@ struct hlsl_struct_field /* Offset of the field within the type it belongs to, in register components, for each regset. */ unsigned int reg_offset[HLSL_REGSET_LAST + 1];
- /* Offset where the fields's name starts in the output bytecode, in bytes. */ + /* Offset where the field name starts in the output bytecode, in bytes. */ size_t name_bytecode_offset; };
@@ -413,7 +413,7 @@ struct hlsl_ir_function_decl struct hlsl_ir_var *return_var;
struct vkd3d_shader_location loc; - /* Item entry in hlsl_ir_function.overloads. The paremeters' types are used as key. */ + /* Item entry in hlsl_ir_function.overloads. The parameters' types are used as key. */ struct rb_entry entry;
/* Function to which this declaration corresponds. */ @@ -761,7 +761,7 @@ struct hlsl_ctx * compute shader profiles. It is set using the numthreads() attribute in the entry point. */ uint32_t thread_count[3];
- /* Whether the parser is inside an state block (effects' metadata) inside a variable declarition. */ + /* Whether the parser is inside an state block (effects' metadata) inside a variable declaration. */ uint32_t in_state_block : 1; /* Whether the numthreads() attribute has been provided in the entry-point function. */ uint32_t found_numthreads : 1; diff --git a/libs/vkd3d-shader/hlsl_codegen.c b/libs/vkd3d-shader/hlsl_codegen.c index 65bd9d4c..77af292e 100644 --- a/libs/vkd3d-shader/hlsl_codegen.c +++ b/libs/vkd3d-shader/hlsl_codegen.c @@ -319,7 +319,7 @@ static void prepend_input_struct_copy(struct hlsl_ctx *ctx, struct list *instrs, return; list_add_after(&lhs->node.entry, &c->node.entry);
- /* This redudant load is expected to be deleted later by DCE */ + /* This redundant load is expected to be deleted later by DCE */ if (!(field_load = hlsl_new_load_index(ctx, &lhs->src, &c->node, &var->loc))) return; list_add_after(&c->node.entry, &field_load->node.entry); @@ -340,7 +340,7 @@ static void prepend_input_var_copy(struct hlsl_ctx *ctx, struct list *instrs, st { struct hlsl_ir_load *load;
- /* This redudant load is expected to be deleted later by DCE */ + /* This redundant load is expected to be deleted later by DCE */ if (!(load = hlsl_new_var_load(ctx, var, var->loc))) return; list_add_head(instrs, &load->node.entry); @@ -414,7 +414,7 @@ static void append_output_struct_copy(struct hlsl_ctx *ctx, struct list *instrs, return; list_add_tail(instrs, &c->node.entry);
- /* This redudant load is expected to be deleted later by DCE */ + /* This redundant load is expected to be deleted later by DCE */ if (!(field_load = hlsl_new_load_index(ctx, &rhs->src, &c->node, &var->loc))) return; list_add_tail(instrs, &field_load->node.entry); @@ -436,7 +436,7 @@ static void append_output_var_copy(struct hlsl_ctx *ctx, struct list *instrs, st { struct hlsl_ir_load *load;
- /* This redudant load is expected to be deleted later by DCE */ + /* This redundant load is expected to be deleted later by DCE */ if (!(load = hlsl_new_var_load(ctx, var, var->loc))) return; list_add_tail(instrs, &load->node.entry);