summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2014-01-23 10:55:16 -0800
committerKenneth Graunke <[email protected]>2014-02-11 15:21:10 -0800
commit0e21ba07f27442b6d53bbba7cf5d7840e416c341 (patch)
tree3259345143b33c9362c65cf3a50bffc712d12fbd /src
parent1edca151a00134778b959366d5e7c0a3b63cc8f7 (diff)
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 <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/gen8_fs_generator.cpp5
1 files changed, 5 insertions, 0 deletions
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 =