i965: allow SIMD8 sampler messages in SIMD16 mode
authorChia-I Wu <olv@lunarg.com>
Mon, 30 Sep 2013 06:12:19 +0000 (14:12 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Wed, 9 Oct 2013 06:49:11 +0000 (14:49 +0800)
When the instruction to send the sampler message is forced uncompressed or
sechalf, send SIMD8 one even in SIMD16 mode.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs_generator.cpp

index 41597735485452b209086400e950cc492e010632..dbfbc113dc782a6bb574917ec4769ffdb6fa35aa 100644 (file)
@@ -381,7 +381,8 @@ fs_generator::generate_tex(fs_inst *inst, struct brw_reg dst, struct brw_reg src
       break;
    }
 
-   if (dispatch_width == 16)
+   if (dispatch_width == 16 &&
+      !inst->force_uncompressed && !inst->force_sechalf)
       simd_mode = BRW_SAMPLER_SIMD_MODE_SIMD16;
 
    if (brw->gen >= 5) {