radv: fix sample_mask_in loading. (v3.1)
authorDave Airlie <airlied@redhat.com>
Tue, 23 Jan 2018 01:07:26 +0000 (11:07 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 24 Jan 2018 04:25:11 +0000 (14:25 +1000)
commit766589d89a211e67f313e8cb38f2d05b09975f96
tree234e72787ce72b10a4495dc6aa3d046d11b86287
parentc727ea9370adc5362e00208b9f1481764b8ef215
radv: fix sample_mask_in loading. (v3.1)

This is ported from radeonsi and fixes:
dEQP-VK.pipeline.multisample_shader_builtin.sample_mask.bit_*

v2: don't call this path for radeonsi, it does it in the epilog.
use the radeonsi code path.
v3: handle NULL pCreateInfo->pMultisampleState properly (Samuel)
v3.1: set ps_iter_samples default to 1 (Bas)

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fixes: bdcbe7c76 (radv: add sample mask input support)
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c
src/amd/common/ac_nir_to_llvm.h
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_private.h