isl: fix mapping of format->stringname

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: ed6e586562 ("intel: properly constify isl_format_layouts")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5110
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12051>
(cherry picked from commit 8a99873712)
This commit is contained in:
Lionel Landwerlin 2021-07-24 20:04:09 +03:00 committed by Dylan Baker
parent f2a07762df
commit d054db55e6
2 changed files with 2 additions and 2 deletions

View file

@ -94,7 +94,7 @@
"description": "isl: fix mapping of format->stringname",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "ed6e586562f4443c56e385017a109e5a5ca5294e"
},

View file

@ -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
};