turnip: Tell spirv_to_nir that we want fragcoord as a sysval.
authorEric Anholt <eric@anholt.net>
Fri, 27 Sep 2019 23:04:30 +0000 (16:04 -0700)
committerJonathan Marek <jonathan@marek.ca>
Tue, 15 Oct 2019 11:56:19 +0000 (07:56 -0400)
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 <hoegsberg@google.com>
src/freedreno/vulkan/tu_shader.c

index 2b68aeafffb399e968c0bcabdd4132c3e91a25dc..32c3506d08dc77efca86d10c51674a202a3d1ce0 100644 (file)
@@ -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 },
    };