diff options
author | Eric Anholt <[email protected]> | 2019-09-27 16:04:30 -0700 |
---|---|---|
committer | Jonathan Marek <[email protected]> | 2019-10-15 07:56:19 -0400 |
commit | 8193c2b08b9ea39947d3c967109403b2f4b3d128 (patch) | |
tree | 14f935641042e83d3f36d4b7972858e697cea36f /src/freedreno | |
parent | 0ce1672a2c6f4379b8122e29baf4e6255027ee47 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/freedreno')
-rw-r--r-- | src/freedreno/vulkan/tu_shader.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 }, }; |