diff options
author | Juha-Pekka Heikkila <[email protected]> | 2014-12-16 12:28:45 +0200 |
---|---|---|
committer | Abdiel Janulgue <[email protected]> | 2014-12-16 13:50:38 +0200 |
commit | 430fbd8ad8b6d62bbb80757c5c7fa4fb365a3794 (patch) | |
tree | bfacf39728ce773e1bf72ca8174947a56ea292b7 /src | |
parent | 873d7351c5a696b6f8493c907eb8c76b8cb632da (diff) |
i965: Make validate_reg tables constant
Declare local tables constant.
Signed-off-by: Juha-Pekka Heikkila <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Ben Widawsky <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_eu_emit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c index 782706a82af..8f15db9f728 100644 --- a/src/mesa/drivers/dri/i965/brw_eu_emit.c +++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c @@ -226,10 +226,10 @@ extern int reg_type_size[]; static void validate_reg(const struct brw_context *brw, brw_inst *inst, struct brw_reg reg) { - int hstride_for_reg[] = {0, 1, 2, 4}; - int vstride_for_reg[] = {0, 1, 2, 4, 8, 16, 32}; - int width_for_reg[] = {1, 2, 4, 8, 16}; - int execsize_for_reg[] = {1, 2, 4, 8, 16}; + const int hstride_for_reg[] = {0, 1, 2, 4}; + const int vstride_for_reg[] = {0, 1, 2, 4, 8, 16, 32}; + const int width_for_reg[] = {1, 2, 4, 8, 16}; + const int execsize_for_reg[] = {1, 2, 4, 8, 16}; int width, hstride, vstride, execsize; if (reg.file == BRW_IMMEDIATE_VALUE) { |