mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 07:10:09 +01:00
nir: In split_var_copies_block, uint, int, and bool types cannot be matrices
Noticed while adding support for 64-bit integer types. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Connor Abbott <cwabbott0@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
4c8c13b356
commit
b87039499b
1 changed files with 5 additions and 3 deletions
|
|
@ -231,9 +231,6 @@ split_var_copies_block(nir_block *block, struct split_var_copies_state *state)
|
||||||
break;
|
break;
|
||||||
case GLSL_TYPE_FLOAT:
|
case GLSL_TYPE_FLOAT:
|
||||||
case GLSL_TYPE_DOUBLE:
|
case GLSL_TYPE_DOUBLE:
|
||||||
case GLSL_TYPE_INT:
|
|
||||||
case GLSL_TYPE_UINT:
|
|
||||||
case GLSL_TYPE_BOOL:
|
|
||||||
if (glsl_type_is_matrix(src_tail->type)) {
|
if (glsl_type_is_matrix(src_tail->type)) {
|
||||||
split_var_copy_instr(intrinsic, dest_head, src_head,
|
split_var_copy_instr(intrinsic, dest_head, src_head,
|
||||||
dest_tail, src_tail, state);
|
dest_tail, src_tail, state);
|
||||||
|
|
@ -241,6 +238,11 @@ split_var_copies_block(nir_block *block, struct split_var_copies_state *state)
|
||||||
ralloc_steal(state->dead_ctx, instr);
|
ralloc_steal(state->dead_ctx, instr);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case GLSL_TYPE_INT:
|
||||||
|
case GLSL_TYPE_UINT:
|
||||||
|
case GLSL_TYPE_BOOL:
|
||||||
|
assert(!glsl_type_is_matrix(src_tail->type));
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
unreachable("Invalid type");
|
unreachable("Invalid type");
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue