mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 18:00:13 +01:00
i965/fs: fix type_size() for doubles
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
935e0e305d
commit
1f51aada3f
1 changed files with 2 additions and 1 deletions
|
|
@ -485,6 +485,8 @@ type_size_scalar(const struct glsl_type *type)
|
|||
case GLSL_TYPE_FLOAT:
|
||||
case GLSL_TYPE_BOOL:
|
||||
return type->components();
|
||||
case GLSL_TYPE_DOUBLE:
|
||||
return type->components() * 2;
|
||||
case GLSL_TYPE_ARRAY:
|
||||
return type_size_scalar(type->fields.array) * type->length;
|
||||
case GLSL_TYPE_STRUCT:
|
||||
|
|
@ -507,7 +509,6 @@ type_size_scalar(const struct glsl_type *type)
|
|||
case GLSL_TYPE_VOID:
|
||||
case GLSL_TYPE_ERROR:
|
||||
case GLSL_TYPE_INTERFACE:
|
||||
case GLSL_TYPE_DOUBLE:
|
||||
case GLSL_TYPE_FUNCTION:
|
||||
unreachable("not reached");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue