Re: [Mesa-dev] [PATCH 8/9] i965: Add const to brw_compact_inst_bits.

2015-10-20 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga 

On Mon, 2015-10-19 at 21:09 -0700, Matt Turner wrote:
> ---
>  src/mesa/drivers/dri/i965/brw_inst.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_inst.h 
> b/src/mesa/drivers/dri/i965/brw_inst.h
> index 819ce59..524a4fb 100644
> --- a/src/mesa/drivers/dri/i965/brw_inst.h
> +++ b/src/mesa/drivers/dri/i965/brw_inst.h
> @@ -739,7 +739,7 @@ typedef struct {
>   * Bits indices range from 0..63.
>   */
>  static inline unsigned
> -brw_compact_inst_bits(brw_compact_inst *inst, unsigned high, unsigned low)
> +brw_compact_inst_bits(const brw_compact_inst *inst, unsigned high, unsigned 
> low)
>  {
> const uint64_t mask = (1ull << (high - low + 1)) - 1;
>  
> @@ -774,7 +774,7 @@ brw_compact_inst_set_##name(const struct brw_device_info 
> *devinfo, \
>  }  \
>  static inline unsigned \
>  brw_compact_inst_##name(const struct brw_device_info *devinfo, \
> -brw_compact_inst *inst)\
> +const brw_compact_inst *inst)  \
>  {  \
> assert(assertions); \
> (void) devinfo; \


___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [PATCH 8/9] i965: Add const to brw_compact_inst_bits.

2015-10-19 Thread Matt Turner
---
 src/mesa/drivers/dri/i965/brw_inst.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_inst.h 
b/src/mesa/drivers/dri/i965/brw_inst.h
index 819ce59..524a4fb 100644
--- a/src/mesa/drivers/dri/i965/brw_inst.h
+++ b/src/mesa/drivers/dri/i965/brw_inst.h
@@ -739,7 +739,7 @@ typedef struct {
  * Bits indices range from 0..63.
  */
 static inline unsigned
-brw_compact_inst_bits(brw_compact_inst *inst, unsigned high, unsigned low)
+brw_compact_inst_bits(const brw_compact_inst *inst, unsigned high, unsigned 
low)
 {
const uint64_t mask = (1ull << (high - low + 1)) - 1;
 
@@ -774,7 +774,7 @@ brw_compact_inst_set_##name(const struct brw_device_info 
*devinfo, \
 }  \
 static inline unsigned \
 brw_compact_inst_##name(const struct brw_device_info *devinfo, \
-brw_compact_inst *inst)\
+const brw_compact_inst *inst)  \
 {  \
assert(assertions); \
(void) devinfo; \
-- 
2.4.9

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev