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:
@@ -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
|
||||
|
Reference in New Issue
Block a user