i965/vec4: Lower ARB_shader_group_vote intrinsics
authorMatt Turner <mattst88@gmail.com>
Thu, 22 Jun 2017 19:21:52 +0000 (12:21 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 20 Jul 2017 23:56:49 +0000 (16:56 -0700)
I don't expect anyone is going to care about using this in vec4 programs
(vertex/tessellation/geometry on Gen6/7), no one has come up with a good
way to implement it much less test it.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_compiler.c

index f31f29d2adef05767ed88994242ce1ded1f552e7..397c8cccf908e971ccd5778e5901de9a2619d6aa 100644 (file)
@@ -78,6 +78,7 @@ static const struct nir_shader_compiler_options vector_nir_options = {
    .lower_unpack_unorm_2x16 = true,
    .lower_extract_byte = true,
    .lower_extract_word = true,
+   .lower_vote_trivial = true,
    .max_unroll_iterations = 32,
 };