i965: Make MOCS index tables static const

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6899>
This commit is contained in:
Ian Romanick 2020-09-24 12:33:25 -07:00
parent 02a0819dcc
commit fe26109123

View file

@ -55,7 +55,7 @@
#include "brw_defines.h"
#include "brw_wm.h"
uint32_t wb_mocs[] = {
static const uint32_t wb_mocs[] = {
[7] = GEN7_MOCS_L3,
[8] = BDW_MOCS_WB,
[9] = SKL_MOCS_WB,
@ -63,7 +63,7 @@ uint32_t wb_mocs[] = {
[11] = ICL_MOCS_WB,
};
uint32_t pte_mocs[] = {
static const uint32_t pte_mocs[] = {
[7] = GEN7_MOCS_L3,
[8] = BDW_MOCS_PTE,
[9] = SKL_MOCS_PTE,