i965: Reuse the new core glsl_count_dword_slots().

The only difference I could see was treating interfaces like structs.
Maintain that case.

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3297>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3297>
This commit is contained in:
Eric Anholt
2020-01-06 13:09:25 -08:00
committed by Marge Bot
parent bc4f089d01
commit 3d9a3d0be0
3 changed files with 3 additions and 55 deletions

View File

@@ -32,14 +32,13 @@
extern "C" {
#endif
int type_size_scalar(const struct glsl_type *type, bool bindless);
int type_size_vec4(const struct glsl_type *type, bool bindless);
int type_size_dvec4(const struct glsl_type *type, bool bindless);
static inline int
type_size_scalar_bytes(const struct glsl_type *type, bool bindless)
{
return type_size_scalar(type, bindless) * 4;
return glsl_count_dword_slots(type, bindless) * 4;
}
static inline int