From: Eric Anholt Date: Fri, 27 Sep 2019 23:04:30 +0000 (-0700) Subject: turnip: Tell spirv_to_nir that we want fragcoord as a sysval. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8193c2b08b9ea39947d3c967109403b2f4b3d128;p=mesa.git turnip: Tell spirv_to_nir that we want fragcoord as a sysval. Fixes ir3 compiler failure failure in dEQP-VK.renderpass.dedicated_allocation.formats.r8g8b8a8_unorm.clear.clear_draw (now just a rendering failure where the subpass clear isn't happening) Reviewed-by: Kristian H. Kristensen --- diff --git a/src/freedreno/vulkan/tu_shader.c b/src/freedreno/vulkan/tu_shader.c index 2b68aeafffb..32c3506d08d 100644 --- a/src/freedreno/vulkan/tu_shader.c +++ b/src/freedreno/vulkan/tu_shader.c @@ -38,6 +38,7 @@ tu_spirv_to_nir(struct ir3_compiler *compiler, { /* TODO these are made-up */ const struct spirv_to_nir_options spirv_options = { + .frag_coord_is_sysval = true, .lower_ubo_ssbo_access_to_offsets = true, .caps = { false }, };