From 0e21ba07f27442b6d53bbba7cf5d7840e416c341 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 23 Jan 2014 10:55:16 -0800 Subject: i965/fs: Fix Broadwell texture header setup to be uncompressed. MOV_RAW disables masking, but doesn't force the instruction to be uncompressed. That needs to be done by hand. Fixes textureGather and texture offset tests. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- src/mesa/drivers/dri/i965/gen8_fs_generator.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mesa/drivers/dri') diff --git a/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp b/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp index e0b52126705..f9026912b1f 100644 --- a/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp +++ b/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp @@ -241,6 +241,9 @@ gen8_fs_generator::generate_tex(fs_inst *ir, if (dispatch_width == 16) src.nr++; + unsigned save_exec_size = default_state.exec_size; + default_state.exec_size = BRW_EXECUTE_8; + MOV_RAW(src, brw_vec8_grf(0, 0)); if (ir->texture_offset) { @@ -248,6 +251,8 @@ gen8_fs_generator::generate_tex(fs_inst *ir, MOV_RAW(retype(brw_vec1_grf(src.nr, 2), BRW_REGISTER_TYPE_UD), brw_imm_ud(ir->texture_offset)); } + + default_state.exec_size = save_exec_size; } uint32_t surf_index = -- cgit v1.2.3