From c0e26c5d272d48c98ae50b9b5358492e76138657 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Fri, 5 Dec 2014 09:53:11 -0800 Subject: [PATCH] i965/fs: Move brw_file_from_reg() higher in the file. This was supposed to be part of the previous commit. --- .../drivers/dri/i965/brw_fs_generator.cpp | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp index 47fcf126b3b..b3229ef5b99 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp @@ -36,6 +36,20 @@ extern "C" { #include "brw_fs.h" #include "brw_cfg.h" +static uint32_t brw_file_from_reg(fs_reg *reg) +{ + switch (reg->file) { + case GRF: + return BRW_GENERAL_REGISTER_FILE; + case MRF: + return BRW_MESSAGE_REGISTER_FILE; + case IMM: + return BRW_IMMEDIATE_VALUE; + default: + unreachable("not reached"); + } +} + static struct brw_reg brw_reg_from_fs_reg(fs_reg *reg) { @@ -1256,20 +1270,6 @@ fs_generator::generate_pixel_interpolator_query(fs_inst *inst, } -static uint32_t brw_file_from_reg(fs_reg *reg) -{ - switch (reg->file) { - case GRF: - return BRW_GENERAL_REGISTER_FILE; - case MRF: - return BRW_MESSAGE_REGISTER_FILE; - case IMM: - return BRW_IMMEDIATE_VALUE; - default: - unreachable("not reached"); - } -} - /** * Sets the first word of a vgrf for gen7+ simd4x2 uniform pull constant * sampler LD messages. -- 2.30.2