freedreno: make opc array static const
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Wed, 20 Jan 2016 21:11:52 +0000 (22:11 +0100)
committerRob Clark <robclark@freedesktop.org>
Thu, 21 Jan 2016 22:20:11 +0000 (17:20 -0500)
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/disasm-a3xx.c

index 1d5022b69c7855d5cc6e41ab27db830703b9cb4c..599872470fc0410c7b1f5bc759f4b32ec226c63e 100644 (file)
@@ -650,7 +650,7 @@ static void print_instr_cat6(instr_t *instr)
 /* size of largest OPC field of all the instruction categories: */
 #define NOPC_BITS 6
 
-struct opc_info {
+static const struct opc_info {
        uint16_t cat;
        uint16_t opc;
        const char *name;