freedreno: Include the layer size in layout debug.
[mesa.git] / src / egl / glvnd_icd.py
1 # Copyright 2019 Intel Corporation
2 # SPDX-License-Identifier: MIT
3
4 import argparse
5 import json
6 import os.path
7
8 if __name__ == '__main__':
9 parser = argparse.ArgumentParser()
10 parser.add_argument('--out', help='Output json file.', required=True)
11 parser.add_argument('--lib-path', help='Path to libEGL_mesa.so', required=True)
12 args = parser.parse_args()
13
14 path = os.path.join(args.lib_path, 'libEGL_mesa.so')
15
16 json_data = {
17 'file_format_version': '1.0.0',
18 'ICD': {
19 'library_path': path,
20 },
21 }
22
23 with open(args.out, 'w') as f:
24 json.dump(json_data, f, indent=4, sort_keys=True, separators=(',', ': '))