[Mesa-dev] [PATCH 03/21] i965/fs: No need to set compression control at the top of generate_code().

Francisco Jerez currojerez at riseup.net
Tue May 24 07:18:40 UTC 2016


The right value is dependent on the specific IR instruction being
generated so it has to be reset in every iteration of the loop anyway.
---
 src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 2 --
 1 file changed, 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 fde11b6..7a44ff5 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
@@ -1536,8 +1536,6 @@ fs_generator::generate_code(const cfg_t *cfg, int dispatch_width)
       brw_NOP(p);
 
    this->dispatch_width = dispatch_width;
-   if (dispatch_width == 16)
-      brw_set_default_compression_control(p, BRW_COMPRESSION_COMPRESSED);
 
    int start_offset = p->next_insn_offset;
    int spill_count = 0, fill_count = 0;
-- 
2.7.3



More information about the mesa-dev mailing list