diff options
author | Connor Abbott <[email protected]> | 2014-08-04 15:20:38 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-10-15 17:04:50 -0700 |
commit | fa212c6b985f494f5609ccca1c260a2aa39c684a (patch) | |
tree | 0dc8db809be8434ce5cdc88447183e5b891bab9c /src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | |
parent | a71455bc992975d11660871b9e46cc88edf16e2e (diff) |
i965: Make brw_texture_offset() not use ir_texture.
Our new IR won't have ir_texture objects.
Signed-off-by: Connor Abbott <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chris Forbes <[email protected]>
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 45c7570b3ac..ad348f7e0cf 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp @@ -1944,7 +1944,9 @@ fs_visitor::visit(ir_texture *ir) * use offset_value.file to distinguish between no offset, a constant * offset, and a non-constant offset. */ - offset_value = fs_reg(brw_texture_offset(ctx, const_offset)); + offset_value = + fs_reg(brw_texture_offset(ctx, const_offset->value.i, + const_offset->type->vector_elements)); } else { ir->offset->accept(this); offset_value = this->result; |