i965/fs: No need to set compression control at the top of generate_code().
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 18 May 2016 10:59:20 +0000 (03:59 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Sat, 28 May 2016 06:22:10 +0000 (23:22 -0700)
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.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_fs_generator.cpp

index e4674d9d6e9339fb1e46f80504b041bf7e250a3e..3ac27f224b5dfde780f463c43e73ecab6cd910d0 100644 (file)
@@ -1541,8 +1541,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;