intel/tools: Fix compilation with UBSan
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Tue, 10 Mar 2020 14:24:59 +0000 (16:24 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 10 Mar 2020 15:20:26 +0000 (15:20 +0000)
commit10eee6d8c630a346cb7d531263f69151016946d6
treea0c32b4e13c7c0d42f46100e132860deeea23aa5
parent74be835a84aaa9637c550ae4d71a2dfc66dc6990
intel/tools: Fix compilation with UBSan

Compilation failed with several similar errors:

../src/intel/tools/aub_read.c:322:4: error: case label does not reduce to an integer constant
  322 |    case MAKE_HEADER(TYPE_AUB, OPCODE_AUB, SUBOPCODE_HEADER):

Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4132>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4132>
src/intel/tools/aub_read.c