mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader/hlsl: Rename init_deref() to hlsl_init_deref().
This commit is contained in:
Notes:
Henri Verbeet
2025-03-12 22:20:19 +01:00
Approved-by: Francisco Casas (@fcasas) Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1388
@@ -739,7 +739,7 @@ unsigned int hlsl_type_get_component_offset(struct hlsl_ctx *ctx, struct hlsl_ty
|
|||||||
return offset[*regset];
|
return offset[*regset];
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool init_deref(struct hlsl_ctx *ctx, struct hlsl_deref *deref, struct hlsl_ir_var *var,
|
static bool hlsl_init_deref(struct hlsl_ctx *ctx, struct hlsl_deref *deref, struct hlsl_ir_var *var,
|
||||||
unsigned int path_len)
|
unsigned int path_len)
|
||||||
{
|
{
|
||||||
deref->var = var;
|
deref->var = var;
|
||||||
@@ -798,7 +798,7 @@ bool hlsl_init_deref_from_index_chain(struct hlsl_ctx *ctx, struct hlsl_deref *d
|
|||||||
}
|
}
|
||||||
load = hlsl_ir_load(ptr);
|
load = hlsl_ir_load(ptr);
|
||||||
|
|
||||||
if (!init_deref(ctx, deref, load->src.var, load->src.path_len + chain_len))
|
if (!hlsl_init_deref(ctx, deref, load->src.var, load->src.path_len + chain_len))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (i = 0; i < load->src.path_len; ++i)
|
for (i = 0; i < load->src.path_len; ++i)
|
||||||
@@ -867,7 +867,7 @@ static bool init_deref_from_component_index(struct hlsl_ctx *ctx, struct hlsl_bl
|
|||||||
++path_len;
|
++path_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!init_deref(ctx, deref, prefix->var, prefix->path_len + path_len))
|
if (!hlsl_init_deref(ctx, deref, prefix->var, prefix->path_len + path_len))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
deref_path_len = 0;
|
deref_path_len = 0;
|
||||||
@@ -1459,7 +1459,7 @@ bool hlsl_copy_deref(struct hlsl_ctx *ctx, struct hlsl_deref *deref, const struc
|
|||||||
|
|
||||||
VKD3D_ASSERT(!hlsl_deref_is_lowered(other));
|
VKD3D_ASSERT(!hlsl_deref_is_lowered(other));
|
||||||
|
|
||||||
if (!init_deref(ctx, deref, other->var, other->path_len))
|
if (!hlsl_init_deref(ctx, deref, other->var, other->path_len))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (i = 0; i < deref->path_len; ++i)
|
for (i = 0; i < deref->path_len; ++i)
|
||||||
@@ -1521,7 +1521,7 @@ struct hlsl_ir_node *hlsl_new_store_index(struct hlsl_ctx *ctx, const struct hls
|
|||||||
return NULL;
|
return NULL;
|
||||||
init_node(&store->node, HLSL_IR_STORE, NULL, loc);
|
init_node(&store->node, HLSL_IR_STORE, NULL, loc);
|
||||||
|
|
||||||
if (!init_deref(ctx, &store->lhs, lhs->var, lhs->path_len + !!idx))
|
if (!hlsl_init_deref(ctx, &store->lhs, lhs->var, lhs->path_len + !!idx))
|
||||||
{
|
{
|
||||||
vkd3d_free(store);
|
vkd3d_free(store);
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -1857,7 +1857,7 @@ struct hlsl_ir_load *hlsl_new_load_index(struct hlsl_ctx *ctx, const struct hlsl
|
|||||||
return NULL;
|
return NULL;
|
||||||
init_node(&load->node, HLSL_IR_LOAD, type, loc);
|
init_node(&load->node, HLSL_IR_LOAD, type, loc);
|
||||||
|
|
||||||
if (!init_deref(ctx, &load->src, deref->var, deref->path_len + !!idx))
|
if (!hlsl_init_deref(ctx, &load->src, deref->var, deref->path_len + !!idx))
|
||||||
{
|
{
|
||||||
vkd3d_free(load);
|
vkd3d_free(load);
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -2367,7 +2367,7 @@ static bool clone_deref(struct hlsl_ctx *ctx, struct clone_instr_map *map,
|
|||||||
|
|
||||||
VKD3D_ASSERT(!hlsl_deref_is_lowered(src));
|
VKD3D_ASSERT(!hlsl_deref_is_lowered(src));
|
||||||
|
|
||||||
if (!init_deref(ctx, dst, src->var, src->path_len))
|
if (!hlsl_init_deref(ctx, dst, src->var, src->path_len))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (i = 0; i < src->path_len; ++i)
|
for (i = 0; i < src->path_len; ++i)
|
||||||
|
Reference in New Issue
Block a user