diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-12-25 13:15:06 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-12-28 00:26:07 +0100 |
commit | c39947ce3046d4339305f2bcecba2617b90edb71 (patch) | |
tree | 23d8d4c05ffc0c7fc18e4bb9f9550e4a576490d1 /src/amd | |
parent | e5a7ef0013cfd0d9514a04d2be1186b7d41532b7 (diff) |
radv: Invert condition for all samples identical during resolve.
the samples_identical instruction returns 0 if they are differet, so
we have to do the extra work if the result is 0, not if it is != 0.
Fixes: f4e499ec791 "radv: add initial non-conformant radv vulkan driver"
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_meta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_meta.c b/src/amd/vulkan/radv_meta.c index 8aff0e2d88f..e13fa928dbc 100644 --- a/src/amd/vulkan/radv_meta.c +++ b/src/amd/vulkan/radv_meta.c @@ -535,7 +535,7 @@ void radv_meta_build_resolve_shader_core(nir_builder *b, nir_ssa_dest_init(&tex_all_same->instr, &tex_all_same->dest, 1, 32, "tex"); nir_builder_instr_insert(b, &tex_all_same->instr); - nir_ssa_def *all_same = nir_ine(b, &tex_all_same->dest.ssa, nir_imm_int(b, 0)); + nir_ssa_def *all_same = nir_ieq(b, &tex_all_same->dest.ssa, nir_imm_int(b, 0)); nir_if *if_stmt = nir_if_create(b->shader); if_stmt->condition = nir_src_for_ssa(all_same); nir_cf_node_insert(b->cursor, &if_stmt->cf_node); |