summaryrefslogtreecommitdiff
path: root/src/intel/vulkan/anv_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-11-14 14:23:36 -0800
committerJason Ekstrand <jason.ekstrand@intel.com>2016-11-22 13:44:55 -0800
commit347f43c8ec54b1380d45a10c6ee38189ec6d73e9 (patch)
tree7cd218535a45c8fdd4b363ffd85a311ffb599e4b /src/intel/vulkan/anv_pipeline.c
parent2e311e421122e0232987fdca3645c6bd39fe2470 (diff)
anv: Add an input attachment lowering pass
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'src/intel/vulkan/anv_pipeline.c')
-rw-r--r--src/intel/vulkan/anv_pipeline.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c
index 2cd06bd78d..9b65e353a9 100644
--- a/src/intel/vulkan/anv_pipeline.c
+++ b/src/intel/vulkan/anv_pipeline.c
@@ -172,6 +172,9 @@ anv_shader_compile_to_nir(struct anv_device *device,
nir_lower_clip_cull_distance_arrays(nir);
nir_validate_shader(nir);
+ if (stage == MESA_SHADER_FRAGMENT)
+ anv_nir_lower_input_attachments(nir);
+
nir_shader_gather_info(nir, entry_point->impl);
nir_variable_mode indirect_mask = 0;