mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/d3dbc: Skip generic sampler declarations.
Instead of asserting.
This commit is contained in:
parent
c2e09e4c4f
commit
1bd873fb2b
Notes:
Alexandre Julliard
2023-08-02 21:24:14 +09:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/288
@ -2034,7 +2034,12 @@ static void write_sm1_sampler_dcls(struct hlsl_ctx *ctx, struct vkd3d_bytecode_b
|
||||
if (var->objects_usage[HLSL_REGSET_SAMPLERS][i].used)
|
||||
{
|
||||
sampler_dim = var->objects_usage[HLSL_REGSET_SAMPLERS][i].sampler_dim;
|
||||
assert(sampler_dim != HLSL_SAMPLER_DIM_GENERIC);
|
||||
if (sampler_dim == HLSL_SAMPLER_DIM_GENERIC)
|
||||
{
|
||||
/* These can appear in sm4-style combined sample instructions. */
|
||||
hlsl_fixme(ctx, &var->loc, "Generic samplers need to be lowered.");
|
||||
continue;
|
||||
}
|
||||
|
||||
reg_id = var->regs[HLSL_REGSET_SAMPLERS].id + i;
|
||||
write_sm1_sampler_dcl(ctx, buffer, reg_id, sampler_dim);
|
||||
|
Loading…
Reference in New Issue
Block a user