[Mesa-dev] [RFC PATCH 28/40] i965/fs: Append uniform variables to the gather table

Abdiel Janulgue abdiel.janulgue at linux.intel.com
Sun Jan 4 06:04:42 PST 2015


Signed-off-by: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
---
 src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
index bd9345e..2f592c9 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
@@ -180,6 +180,7 @@ fs_visitor::visit(ir_variable *ir)
       reg = new(this->mem_ctx) fs_reg(UNIFORM, param_index);
       reg->type = brw_type_for_base_type(ir->type);
 
+      stage_prog_data->gather_table[stage_prog_data->nr_gather_table++].reg = reg->reg;
    } else if (ir->data.mode == ir_var_system_value) {
       switch (ir->data.location) {
       case SYSTEM_VALUE_BASE_VERTEX:
-- 
1.9.1



More information about the mesa-dev mailing list