i965: Make validate_reg tables constant
Declare local tables constant. Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
committed by
Abdiel Janulgue
parent
873d7351c5
commit
430fbd8ad8
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user