intel/compiler: Factor out brw_validate_instruction()
authorMatt Turner <mattst88@gmail.com>
Mon, 11 Nov 2019 23:19:07 +0000 (15:19 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Jan 2020 00:19:21 +0000 (00:19 +0000)
commit0fc490cdee93d031cbb4e27efb0710190af78e68
treea7dfffb464f5bb787e860e3baa6c770667750f0c
parent40f0ade68ea870c4e97a30711e62e4ec69a888b6
intel/compiler: Factor out brw_validate_instruction()

In order to fuzz test instructions, we first need to do some sanity
checking first. Factoring out this function allows us an easy way to
validate a single instruction.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2635>
src/intel/compiler/brw_eu_validate.c