radv/multiview: mark layer_input if we have input attachments.
authorDave Airlie <airlied@redhat.com>
Mon, 19 Mar 2018 03:41:18 +0000 (03:41 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 19 Mar 2018 19:26:39 +0000 (19:26 +0000)
This fixes:
dEQP-VK.multiview.input_attachments*

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_shader_info.c

index 7208bd2f58798386dd8f6eaf7bb5e389128289f5..9c18791524d4ae3af9c58c1d2507221d7d1c2cb8 100644 (file)
@@ -122,8 +122,10 @@ gather_intrinsic_info(const nir_shader *nir, const nir_intrinsic_instr *instr,
 
                enum glsl_sampler_dim dim = glsl_get_sampler_dim(type);
                if (dim == GLSL_SAMPLER_DIM_SUBPASS ||
-                   dim == GLSL_SAMPLER_DIM_SUBPASS_MS)
+                   dim == GLSL_SAMPLER_DIM_SUBPASS_MS) {
+                       info->ps.layer_input = true;
                        info->ps.uses_input_attachments = true;
+               }
                mark_sampler_desc(instr->variables[0]->var, info);
 
                if (nir_intrinsic_image_store ||