From 8a99873712492067afa8b08c0436c2794a516884 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Sat, 24 Jul 2021 20:04:09 +0300 Subject: [PATCH] isl: fix mapping of format->stringname Signed-off-by: Lionel Landwerlin Fixes: ed6e586562f444 ("intel: properly constify isl_format_layouts") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5110 Reviewed-by: Jason Ekstrand Part-of: --- src/intel/isl/gen_format_layout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/isl/gen_format_layout.py b/src/intel/isl/gen_format_layout.py index 9b23414..8a6d2a1 100644 --- a/src/intel/isl/gen_format_layout.py +++ b/src/intel/isl/gen_format_layout.py @@ -63,7 +63,7 @@ TEMPLATE = template.Template(future_imports=['division'], const uint16_t isl_format_name_offsets[] = { <% offset = 0 %> % for format in formats: - ${offset}, <% offset += 11 + len(format.name) + 1 %> + [ISL_FORMAT_${format.name}] = ${offset}, <% offset += 11 + len(format.name) + 1 %> % endfor }; -- 2.7.4