aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-11-01 13:29:37 -0700
committerKenneth Graunke <[email protected]>2013-11-04 16:51:22 -0800
commit7b4b94a9567b7322e2ef6e28dcd38a23374684ea (patch)
treefad45dcf2579b1a32c6404e8a7ac29725e6e6a61
parent10cb91d7fba822a13fbdc1ad12f76b545d4e302b (diff)
i965: Expose brw_reg_from_fs_reg() to other files.
This will be useful for Broadwell code as well. Signed-off-by: Kenneth Graunke <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.h2
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_generator.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h
index 675e379fcd6..4f97a67a960 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.h
+++ b/src/mesa/drivers/dri/i965/brw_fs.h
@@ -619,3 +619,5 @@ private:
bool brw_do_channel_expressions(struct exec_list *instructions);
bool brw_do_vector_splitting(struct exec_list *instructions);
bool brw_fs_precompile(struct gl_context *ctx, struct gl_shader_program *prog);
+
+struct brw_reg brw_reg_from_fs_reg(fs_reg *reg);
diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
index d67c4e4b3ae..63ac53062b2 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
@@ -989,7 +989,7 @@ static uint32_t brw_file_from_reg(fs_reg *reg)
}
}
-static struct brw_reg
+struct brw_reg
brw_reg_from_fs_reg(fs_reg *reg)
{
struct brw_reg brw_reg;