diff options
author | Matt Turner <mattst88@gmail.com> | 2019-04-18 10:09:08 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2019-04-18 14:13:30 -0700 |
commit | 028c00156ac7d380e135a19c36c2a80ab4b38d27 (patch) | |
tree | 70e88b79bbd4bdcb645e6bae3b8e70a6974efcfd | |
parent | b6a0a80c17260ba3744172f4d3118cbba0fe87bb (diff) |
intel/compiler: Use SIMD16 instructions in fs saturate prop unit test
Will allow us to test that propagation between instructions of different
exec sizes does not happen (in the next commit).
The stray-looking change in intervening_dest_write is to adjust the size
of the texture result to keep the test functioning identically when the
instructions' exec sizes are doubled. Without the change, the texture
does not overwrite the destination fully as the unit test intends.
-rw-r--r-- | src/intel/compiler/test_fs_saturate_propagation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/compiler/test_fs_saturate_propagation.cpp b/src/intel/compiler/test_fs_saturate_propagation.cpp index 360f735220c..b7d71020058 100644 --- a/src/intel/compiler/test_fs_saturate_propagation.cpp +++ b/src/intel/compiler/test_fs_saturate_propagation.cpp @@ -48,7 +48,7 @@ public: nir_shader *shader) : fs_visitor(compiler, NULL, NULL, NULL, &prog_data->base, (struct gl_program *) NULL, - shader, 8, -1) {} + shader, 16, -1) {} }; @@ -650,7 +650,7 @@ TEST_F(saturate_propagation_test, intervening_dest_write) fs_reg src2 = v->vgrf(glsl_type::vec2_type); bld.ADD(offset(dst0, bld, 2), src0, src1); bld.emit(SHADER_OPCODE_TEX, dst0, src2) - ->size_written = 4 * REG_SIZE; + ->size_written = 8 * REG_SIZE; set_saturate(true, bld.MOV(dst1, offset(dst0, bld, 2))); /* = Before = |