iris: Set nir_shader_compiler_options::unify_interfaces.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 17 Jun 2019 22:12:25 +0000 (17:12 -0500)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 3 Jan 2020 00:41:50 +0000 (00:41 +0000)
This is technically enabling the option in the common intel backend
code, but only the st/nir linker uses the option, so it's iris-only.

Fixes Piglit's spec/glsl-1.50/execution/geometry/clip-distance-vs-gs-out

Closes: #2274
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3249>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3249>

src/gallium/drivers/iris/iris_program.c
src/intel/compiler/brw_compiler.c

index c162141a9f97b816f916c641d62da42d022c38c1..20dba6ea3835f1110859ef3abbdfb15d34977e5a 100644 (file)
@@ -261,8 +261,6 @@ iris_lower_storage_image_derefs(nir_shader *nir)
    }
 }
 
-// XXX: need unify_interfaces() at link time...
-
 /**
  * Undo nir_lower_passthrough_edgeflags but keep the inputs_read flag.
  */
index 06b70193dd636797371c221259c9ef87922837d6..0a4140eda43f3306cfba7ac87fd2e87da659287c 100644 (file)
@@ -194,6 +194,9 @@ brw_compiler_create(void *mem_ctx, const struct gen_device_info *devinfo)
 
       nir_options->lower_int64_options = int64_options;
       nir_options->lower_doubles_options = fp64_options;
+
+      nir_options->unify_interfaces = i < MESA_SHADER_FRAGMENT;
+
       compiler->glsl_compiler_options[i].NirOptions = nir_options;
 
       compiler->glsl_compiler_options[i].ClampBlockIndicesToArrayBounds = true;