[Mesa-dev] [PATCH 01/10] i965: Use get_element_ud to shorten texture header access.
Kenneth Graunke
kenneth at whitecape.org
Sat Jan 18 20:20:03 PST 2014
This is shorter, easier to read, and further from the 80 column limit.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
index 2bbf687..6fe8fcb 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
@@ -550,8 +550,7 @@ fs_generator::generate_tex(fs_inst *inst, struct brw_reg dst, struct brw_reg src
brw_MOV(p, header_reg, brw_vec8_grf(0, 0));
/* Then set the offset bits in DWord 2. */
- brw_MOV(p, retype(brw_vec1_reg(header_reg.file,
- header_reg.nr, 2), BRW_REGISTER_TYPE_UD),
+ brw_MOV(p, get_element_ud(header_reg, 2),
brw_imm_ud(inst->texture_offset));
brw_pop_insn_state(p);
} else if (inst->header_present) {
--
1.8.5.2
More information about the mesa-dev
mailing list