OSDN Git Service

intel/compiler: brw_validate_instructions to take const void* instead of void*
authorKevin Rogovin <kevin.rogovin@intel.com>
Mon, 25 Sep 2017 10:34:08 +0000 (13:34 +0300)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 26 Oct 2017 17:43:48 +0000 (10:43 -0700)
The disassembler does not (and should not) be modifying the data.

Signed-off-by: Kevin Rogovin <kevin.rogovin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_eu.h
src/intel/compiler/brw_eu_validate.c

index 8e597b2..d8c9be2 100644 (file)
@@ -549,7 +549,7 @@ void brw_debug_compact_uncompact(const struct gen_device_info *devinfo,
 
 /* brw_eu_validate.c */
 bool brw_validate_instructions(const struct gen_device_info *devinfo,
-                               void *assembly, int start_offset, int end_offset,
+                               const void *assembly, int start_offset, int end_offset,
                                struct annotation_info *annotation);
 
 static inline int
index f359599..647835a 100644 (file)
@@ -1257,7 +1257,7 @@ special_requirements_for_handling_double_precision_data_types(
 
 bool
 brw_validate_instructions(const struct gen_device_info *devinfo,
-                          void *assembly, int start_offset, int end_offset,
+                          const void *assembly, int start_offset, int end_offset,
                           struct annotation_info *annotation)
 {
    bool valid = true;