mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 05:58:05 +02:00
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 commit8a99873712)
This commit is contained in:
parent
f2a07762df
commit
d054db55e6
2 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue