diff options
author | Dave Airlie <[email protected]> | 2017-06-20 13:21:04 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-06-26 08:45:30 +1000 |
commit | 6a68170c8360d702a25e59740d04f79a4f8323a7 (patch) | |
tree | 64fbdaf11d2657331de0e29746a774f0e0e5aab6 /src/amd/vulkan/si_cmd_buffer.c | |
parent | 2a87ddbdcb3129606f237d4eedf9cad588b5b4d9 (diff) |
radv: handle primitive id input into fragment shader with no geom shader
Fixes:
dEQP-VK.pipeline.framebuffer_attachment.no_attachments
dEQP-VK.pipeline.framebuffer_attachment.no_attachments_ms
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/si_cmd_buffer.c')
-rw-r--r-- | src/amd/vulkan/si_cmd_buffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/vulkan/si_cmd_buffer.c b/src/amd/vulkan/si_cmd_buffer.c index 86e8e3e4986..bf08214c551 100644 --- a/src/amd/vulkan/si_cmd_buffer.c +++ b/src/amd/vulkan/si_cmd_buffer.c @@ -700,6 +700,9 @@ si_get_ia_multi_vgt_param(struct radv_cmd_buffer *cmd_buffer, multi_instances_smaller_than_primgroup = indirect_draw || (instanced_draw && num_prims < primgroup_size); + if (cmd_buffer->state.pipeline->shaders[MESA_SHADER_FRAGMENT]->info.fs.prim_id_input) + ia_switch_on_eoi = true; + if (radv_pipeline_has_tess(cmd_buffer->state.pipeline)) { /* SWITCH_ON_EOI must be set if PrimID is used. */ if (cmd_buffer->state.pipeline->shaders[MESA_SHADER_TESS_CTRL]->info.tcs.uses_prim_id || |