diff options
author | Matt Turner <[email protected]> | 2019-11-11 16:11:34 -0800 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-01-22 00:19:21 +0000 |
commit | 22462ba242d4b1ca63fb867668d5ef19ef1dff6e (patch) | |
tree | a9f8e6fb17c859ea5061c0eb672e374e08520488 /src/intel/compiler/brw_eu.h | |
parent | 72cf63cfc63ca7789ca9f6f62477a7f55a80cad7 (diff) |
intel/compiler: Validate fuzzed instructions
... before giving them to the instruction compactor.
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2635>
Diffstat (limited to 'src/intel/compiler/brw_eu.h')
-rw-r--r-- | src/intel/compiler/brw_eu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_eu.h b/src/intel/compiler/brw_eu.h index ce1368a7fd3..ea4ee7748f6 100644 --- a/src/intel/compiler/brw_eu.h +++ b/src/intel/compiler/brw_eu.h @@ -1243,6 +1243,9 @@ void brw_debug_compact_uncompact(const struct gen_device_info *devinfo, brw_inst *orig, brw_inst *uncompacted); /* brw_eu_validate.c */ +bool brw_validate_instruction(const struct gen_device_info *devinfo, + const brw_inst *inst, int offset, + struct disasm_info *disasm); bool brw_validate_instructions(const struct gen_device_info *devinfo, const void *assembly, int start_offset, int end_offset, struct disasm_info *disasm); |