[Mesa-dev] [PATCH 06/10] i965/fs: Remove unneeded uses of force_uncompressed
Jason Ekstrand
jason at jlekstrand.net
Thu Sep 4 22:19:10 PDT 2014
Signed-off-by: Jason Ekstrand <jason.ekstrand at intel.com>
---
src/mesa/drivers/dri/i965/brw_blorp_blit_eu.h | 2 --
src/mesa/drivers/dri/i965/brw_fs.cpp | 4 ----
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 4 ----
3 files changed, 10 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_blorp_blit_eu.h b/src/mesa/drivers/dri/i965/brw_blorp_blit_eu.h
index cd50da4..a32090b 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp_blit_eu.h
+++ b/src/mesa/drivers/dri/i965/brw_blorp_blit_eu.h
@@ -93,7 +93,6 @@ protected:
inline void emit_mov_8(const struct brw_reg& dst, const struct brw_reg& src)
{
fs_inst *mv = new (mem_ctx) fs_inst(BRW_OPCODE_MOV, 8, dst, src);
- mv->force_uncompressed = true;
insts.push_tail(mv);
}
@@ -116,7 +115,6 @@ protected:
const struct brw_reg& src2)
{
fs_inst *add = new (mem_ctx) fs_inst(BRW_OPCODE_ADD, 8, dst, src1, src2);
- add->force_uncompressed = true;
insts.push_tail(add);
}
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index cbd3a77..15c68be 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -343,7 +343,6 @@ fs_visitor::DEP_RESOLVE_MOV(int grf)
* dependencies, and to avoid having to deal with aligning its regs to 2.
*/
inst->width = 8;
- inst->force_uncompressed = true;
return inst;
}
@@ -557,7 +556,6 @@ fs_visitor::get_timestamp()
* even if it's not enabled in the dispatch.
*/
mov->force_writemask_all = true;
- mov->force_uncompressed = true;
mov->width = 8;
/* The caller wants the low 32 bits of the timestamp. Since it's running
@@ -1292,7 +1290,6 @@ fs_visitor::emit_samplepos_setup()
fs_inst *inst = emit(MOV(int_sample_x, fs_reg(sample_pos_reg)));
if (dispatch_width == 16) {
inst->width = 8;
- inst->force_uncompressed = true;
inst = emit(MOV(half(int_sample_x, 1),
fs_reg(suboffset(sample_pos_reg, 16))));
inst->width = 8;
@@ -1304,7 +1301,6 @@ fs_visitor::emit_samplepos_setup()
inst = emit(MOV(int_sample_y, fs_reg(suboffset(sample_pos_reg, 1))));
if (dispatch_width == 16) {
inst->width = 8;
- inst->force_uncompressed = true;
inst = emit(MOV(half(int_sample_y, 1),
fs_reg(suboffset(sample_pos_reg, 17))));
inst->width = 8;
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
index 3c798f1..f7141fc 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
@@ -2965,12 +2965,10 @@ fs_visitor::emit_color_write(int target, int index, int first_color_mrf)
color));
inst->saturate = key->clamp_fragment_color;
} else {
- push_force_uncompressed();
inst = emit(MOV(fs_reg(MRF, first_color_mrf + index, color.type),
color));
inst->width = 8;
inst->saturate = key->clamp_fragment_color;
- pop_force_uncompressed();
inst = emit(MOV(fs_reg(MRF, first_color_mrf + index + 4, color.type),
half(color, 1)));
@@ -3076,11 +3074,9 @@ fs_visitor::emit_fb_writes()
}
if (payload.aa_dest_stencil_reg) {
- push_force_uncompressed();
emit(MOV(fs_reg(MRF, nr++),
fs_reg(brw_vec8_grf(payload.aa_dest_stencil_reg, 0))))
->width = 8;
- pop_force_uncompressed();
}
prog_data->uses_omask =
--
2.1.0
More information about the mesa-dev
mailing list