zink: enable early frag test execution in ntv when necessary
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8504>
This commit is contained in:
parent
9cd2aff1a3
commit
245d9fa21b
|
@ -3265,6 +3265,8 @@ nir_to_spirv(struct nir_shader *s, const struct zink_so_info *so_info,
|
||||||
if (s->info.outputs_written & BITFIELD64_BIT(FRAG_RESULT_DEPTH))
|
if (s->info.outputs_written & BITFIELD64_BIT(FRAG_RESULT_DEPTH))
|
||||||
spirv_builder_emit_exec_mode(&ctx.builder, entry_point,
|
spirv_builder_emit_exec_mode(&ctx.builder, entry_point,
|
||||||
SpvExecutionModeDepthReplacing);
|
SpvExecutionModeDepthReplacing);
|
||||||
|
if (s->info.fs.early_fragment_tests)
|
||||||
|
spirv_builder_emit_exec_mode(&ctx.builder, entry_point, SpvExecutionModeEarlyFragmentTests);
|
||||||
break;
|
break;
|
||||||
case MESA_SHADER_TESS_CTRL:
|
case MESA_SHADER_TESS_CTRL:
|
||||||
spirv_builder_emit_exec_mode_literal(&ctx.builder, entry_point, SpvExecutionModeOutputVertices, s->info.tess.tcs_vertices_out);
|
spirv_builder_emit_exec_mode_literal(&ctx.builder, entry_point, SpvExecutionModeOutputVertices, s->info.tess.tcs_vertices_out);
|
||||||
|
|
Loading…
Reference in New Issue