mesa/spirv: Set frag_coord_is_sysval to GLSLFragCoordIsSysVal
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 18 Jul 2019 18:54:57 +0000 (13:54 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Mon, 29 Jul 2019 23:30:26 +0000 (23:30 +0000)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/glspirv.c

index 21a1beb84536dc302217bab943685667ef718168..1e1540e570b771f0bf9842c8a89892425a4ad988 100644 (file)
@@ -246,6 +246,7 @@ _mesa_spirv_to_nir(struct gl_context *ctx,
    const struct spirv_to_nir_options spirv_options = {
       .environment = NIR_SPIRV_OPENGL,
       .lower_workgroup_access_to_offsets = true,
+      .frag_coord_is_sysval = ctx->Const.GLSLFragCoordIsSysVal,
       .caps = ctx->Const.SpirVCapabilities,
       .ubo_addr_format = nir_address_format_32bit_index_offset,
       .ssbo_addr_format = nir_address_format_32bit_index_offset,