summaryrefslogtreecommitdiff
path: root/src/compiler/glsl_types.cpp
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2020-01-06 13:09:25 -0800
committerMarge Bot <eric+marge@anholt.net>2020-01-14 23:55:00 +0000
commit3d9a3d0be0c11f46b23459de14e4f2b2c5daaeb0 (patch)
treebe9a9a2c6bd062ef03d2e7a0d02166b97da3a9b9 /src/compiler/glsl_types.cpp
parentbc4f089d0167dc22fb86c85fbd0fd0fa6f073a85 (diff)
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>
Diffstat (limited to 'src/compiler/glsl_types.cpp')
-rw-r--r--src/compiler/glsl_types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl_types.cpp b/src/compiler/glsl_types.cpp
index e664f4ab4cd..b357ed0823b 100644
--- a/src/compiler/glsl_types.cpp
+++ b/src/compiler/glsl_types.cpp
@@ -2546,6 +2546,7 @@ glsl_type::count_dword_slots(bool is_bindless) const
return this->fields.array->count_dword_slots(is_bindless) *
this->length;
+ case GLSL_TYPE_INTERFACE:
case GLSL_TYPE_STRUCT: {
unsigned size = 0;
for (unsigned i = 0; i < this->length; i++) {
@@ -2560,7 +2561,6 @@ glsl_type::count_dword_slots(bool is_bindless) const
return 1;
case GLSL_TYPE_VOID:
case GLSL_TYPE_ERROR:
- case GLSL_TYPE_INTERFACE:
case GLSL_TYPE_FUNCTION:
default:
unreachable("invalid type in st_glsl_type_dword_size()");