aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno/fdl/fd6_layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/freedreno/fdl/fd6_layout.c')
-rw-r--r--src/freedreno/fdl/fd6_layout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/freedreno/fdl/fd6_layout.c b/src/freedreno/fdl/fd6_layout.c
index 3d4efb1d0a8..0f8f14dfc2d 100644
--- a/src/freedreno/fdl/fd6_layout.c
+++ b/src/freedreno/fdl/fd6_layout.c
@@ -93,6 +93,8 @@ fdl6_layout(struct fdl_layout *layout,
layout->cpp = util_format_get_blocksize(format);
layout->cpp *= nr_samples;
+ layout->cpp_shift = ffs(layout->cpp) - 1;
+
layout->format = format;
layout->nr_samples = nr_samples;
layout->layer_first = !is_3d;