[Mesa-dev] [PATCH 08/22] intel/compiler: brw_validate_instructions to take const void* instead of void*

kevin.rogovin at intel.com kevin.rogovin at intel.com
Mon Sep 25 10:34:08 UTC 2017


From: Kevin Rogovin <kevin.rogovin at intel.com>

The disassembler does not (and should not) be modifying the data.

Signed-off-by: Kevin Rogovin <kevin.rogovin at intel.com>
---
 src/intel/compiler/brw_eu.h          | 2 +-
 src/intel/compiler/brw_eu_validate.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/intel/compiler/brw_eu.h b/src/intel/compiler/brw_eu.h
index 8e597b2..d8c9be2 100644
--- a/src/intel/compiler/brw_eu.h
+++ b/src/intel/compiler/brw_eu.h
@@ -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
diff --git a/src/intel/compiler/brw_eu_validate.c b/src/intel/compiler/brw_eu_validate.c
index 7453218..d8eb561 100644
--- a/src/intel/compiler/brw_eu_validate.c
+++ b/src/intel/compiler/brw_eu_validate.c
@@ -1082,7 +1082,7 @@ vector_immediate_restrictions(const struct gen_device_info *devinfo,
 
 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;
-- 
2.7.4



More information about the mesa-dev mailing list