mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-14 22:18:20 +02:00
util/format: Place PAN_FORMAT_FOO_START after the first format
Without this, GDB will say PIPE_FORMAT_ZS_START instead of PIPE_FORMAT_S8_UINT. This makes pipe_format more debuggable. Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com> Acked-by: Boris Brezillon <boris.brezillon@collabora.com> Acked-by: Eric R. Smith <eric.smith@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39759>
This commit is contained in:
parent
3cb4d4787c
commit
a59bf9c0f2
1 changed files with 2 additions and 2 deletions
|
|
@ -170,8 +170,8 @@ def write_format_enum_section(formats, type_name=None, max_formats=None):
|
|||
for idx, f in enumerate(formats):
|
||||
# Vertex formats must be first and must be <= 255.
|
||||
if idx == 0 and type_name != None:
|
||||
print(' PIPE_FORMAT_%s_START,' % (type_name), file=sys.stdout3)
|
||||
print(' %s = PIPE_FORMAT_%s_START,' % (f, type_name), file=sys.stdout3)
|
||||
print(' %s,' % (f), file=sys.stdout3)
|
||||
print(' PIPE_FORMAT_%s_START = %s,' % (type_name, f), file=sys.stdout3)
|
||||
elif idx == len(formats) - 1 and type_name != None:
|
||||
print(' %s,' % (f), file=sys.stdout3)
|
||||
print(' PIPE_FORMAT_%s_END = %s,' % (type_name, f), file=sys.stdout3)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue