i965: Add const to brw_compact_inst_bits.
authorMatt Turner <mattst88@gmail.com>
Tue, 20 Oct 2015 01:59:53 +0000 (18:59 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 21 Oct 2015 17:17:38 +0000 (10:17 -0700)
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_inst.h

index 819ce5965470b8d845cd1043f4c5e3be946aa460..524a4fb1d37146299711068da4548ae110c40e43 100644 (file)
@@ -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;                                                 \