projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e35e030
)
nir/lower_images: fix for array of arrays
author
Karol Herbst
<kherbst@redhat.com>
Mon, 15 Jun 2020 16:29:58 +0000
(18:29 +0200)
committer
Marge Bot
<eric+marge@anholt.net>
Thu, 18 Jun 2020 15:15:17 +0000
(15:15 +0000)
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5480>
src/compiler/glsl/gl_nir_lower_images.c
patch
|
blob
|
history
diff --git
a/src/compiler/glsl/gl_nir_lower_images.c
b/src/compiler/glsl/gl_nir_lower_images.c
index 5b51c3aa03cc6fdbf5f00678ab8022692c6fa5a4..265206a012a32f587f54bfa3eb5d2573dcbf6440 100644
(file)
--- a/
src/compiler/glsl/gl_nir_lower_images.c
+++ b/
src/compiler/glsl/gl_nir_lower_images.c
@@
-39,8
+39,15
@@
static void
type_size_align_1(const struct glsl_type *type, unsigned *size, unsigned *align)
{
- *size = 1;
- *align = 1;
+ unsigned s;
+
+ if (glsl_type_is_array(type))
+ s = glsl_get_aoa_size(type);
+ else
+ s = 1;
+
+ *size = s;
+ *align = s;
}
static bool