Module: Mesa
Branch: master
Commit: 75d10e4c84c0666d4120389d116cb178afccec4d
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=75d10e4c84c0666d4120389d116cb178afccec4d

Author: Kevin Rogovin <[email protected]>
Date:   Mon Sep 25 13:34:08 2017 +0300

intel/compiler: brw_validate_instructions to take const void* instead of void*

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

Signed-off-by: Kevin Rogovin <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>

---

 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 8e597b212a..d8c9be2e54 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 f359599c38..647835af7a 100644
--- a/src/intel/compiler/brw_eu_validate.c
+++ b/src/intel/compiler/brw_eu_validate.c
@@ -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;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to