summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-12-05 09:53:11 -0800
committerMatt Turner <[email protected]>2014-12-05 09:53:35 -0800
commitc0e26c5d272d48c98ae50b9b5358492e76138657 (patch)
tree68605c591fb8533e9ed9ba9e57a54a04aef6aa60
parentdb186f2a38120860710fa98375589599654d694e (diff)
i965/fs: Move brw_file_from_reg() higher in the file.
This was supposed to be part of the previous commit.
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_generator.cpp28
1 files 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.