diff options
author | Kenneth Graunke <[email protected]> | 2011-10-26 22:41:07 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2011-10-28 12:11:52 -0700 |
commit | 512431b3575eb5f2c27d8795c5e2191047ebb5ed (patch) | |
tree | 3e61cb9b6690a208d28c8dc2d46b3aa8dffd1b5c /src/mesa/drivers | |
parent | 058e712415a8160479f0df13367b1171ffd66902 (diff) |
i965/fs: Use the actual hardware g0 register for texel offset setup.
The idea here is to set up the message header with the Sampler State
pointer which the hardware provides as part of the PS Thread Payload in
register g0.
Unfortunately, the existing code
fs_reg(GRF, 0, BRW_REGISTER_TYPE_UD))
actually references "virtual GRF 0" rather than the hardware g0. This
is just some arbitrary GRF temporary which will get register allocated.
So, we ended up setting up the header with garbage.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 2 |
1 files changed, 1 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 2f95014d2a2..15009dcc57b 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp @@ -1086,7 +1086,7 @@ fs_visitor::visit(ir_texture *ir) /* Explicitly set up the message header by copying g0 to msg reg m1. */ emit(BRW_OPCODE_MOV, fs_reg(MRF, 1, BRW_REGISTER_TYPE_UD), - fs_reg(GRF, 0, BRW_REGISTER_TYPE_UD)); + fs_reg(retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD))); /* Then set the offset bits in DWord 2 of the message header. */ emit(BRW_OPCODE_MOV, |