Mesa (main): isl: fix mapping of format->stringname

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jul 26 07:27:27 UTC 2021


Module: Mesa
Branch: main
Commit: 8a99873712492067afa8b08c0436c2794a516884
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a99873712492067afa8b08c0436c2794a516884

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Sat Jul 24 20:04:09 2021 +0300

isl: fix mapping of format->stringname

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Fixes: ed6e586562f444 ("intel: properly constify isl_format_layouts")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5110
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12051>

---

 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 9b23414f29e..8a6d2a12e7e 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
 };
 



More information about the mesa-commit mailing list