diff options
author | Francisco Jerez <currojerez@riseup.net> | 2015-06-03 19:59:44 +0300 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2015-06-09 15:18:31 +0300 |
commit | e04b4156a745fc09afa066c892c1913362eae9df (patch) | |
tree | 43c0fb48d94bb42dcaad9b1ff80664134867e621 /src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | |
parent | 8ea8f83c8f6b932749ada32ac666d151a9636508 (diff) | |
download | external_mesa3d-e04b4156a745fc09afa066c892c1913362eae9df.zip external_mesa3d-e04b4156a745fc09afa066c892c1913362eae9df.tar.gz external_mesa3d-e04b4156a745fc09afa066c892c1913362eae9df.tar.bz2 |
i965/fs: Allocate a common IR builder object in fs_visitor.
v2: Call fs_builder::at_end() to point the builder at the end of the
program explicitly.
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_visitor.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index 8b9fede..69c0452 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp @@ -47,6 +47,7 @@ #include "glsl/ir_optimization.h" #include "program/sampler.h" +using namespace brw; fs_reg * fs_visitor::emit_vs_system_value(int location) @@ -2045,7 +2046,8 @@ fs_visitor::fs_visitor(struct brw_context *brw, reg_null_d(retype(brw_null_vec(dispatch_width), BRW_REGISTER_TYPE_D)), reg_null_ud(retype(brw_null_vec(dispatch_width), BRW_REGISTER_TYPE_UD)), key(key), prog_data(prog_data), - dispatch_width(dispatch_width), promoted_constants(0) + dispatch_width(dispatch_width), promoted_constants(0), + bld(fs_builder(this, dispatch_width).at_end()) { this->mem_ctx = mem_ctx; |