aboutsummaryrefslogtreecommitdiff
path: root/scripts/vulkaninfo_generator.py
diff options
context:
space:
mode:
authorDaniel Charles <daniel.charles@intel.com>2019-11-13 15:54:08 -0800
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2019-11-14 21:33:32 -0700
commit99b986c82b14fc75c261feae2fac4fb7bd8ee364 (patch)
tree03c0fab97910664a292b116bbbde8e269185c7d2 /scripts/vulkaninfo_generator.py
parentf094f02955fd54d51cca74244492a91842a7afab (diff)
downloadusermoji-99b986c82b14fc75c261feae2fac4fb7bd8ee364.tar.xz
vulkaninfo: return properly on xcb onnection errors
Calling xcb_disconnect on the connection to release memory and return. Otherwise on a headless display with no X11 backend the nullptr for the connection will cause segmentation fault on following xcb calls when xcb_connection_has_error returns a code. examples ran on headless displays DISPLAY=:0 vulkaninfo returns XCB_CONN_ERROR DISPLAY=foobar vulkaninfo returns XCB_CONN_CLOSED_PARSE_ERR v2:restore xcb_connection=nullptr as other xcb calls need it when error happened. Signed-off-by: Daniel Charles <daniel.charles@intel.com>
Diffstat (limited to 'scripts/vulkaninfo_generator.py')
0 files changed, 0 insertions, 0 deletions