mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 01:20:22 +01:00
zink: set ExecutionModeDepthReplacing when depth is written
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
10f26ef92d
commit
a9770e2bd2
1 changed files with 5 additions and 1 deletions
|
|
@ -1523,9 +1523,13 @@ nir_to_spirv(struct nir_shader *s)
|
|||
spirv_builder_emit_entry_point(&ctx.builder, exec_model, entry_point,
|
||||
"main", ctx.entry_ifaces,
|
||||
ctx.num_entry_ifaces);
|
||||
if (s->info.stage == MESA_SHADER_FRAGMENT)
|
||||
if (s->info.stage == MESA_SHADER_FRAGMENT) {
|
||||
spirv_builder_emit_exec_mode(&ctx.builder, entry_point,
|
||||
SpvExecutionModeOriginUpperLeft);
|
||||
if (s->info.outputs_written & BITFIELD64_BIT(FRAG_RESULT_DEPTH))
|
||||
spirv_builder_emit_exec_mode(&ctx.builder, entry_point,
|
||||
SpvExecutionModeDepthReplacing);
|
||||
}
|
||||
|
||||
|
||||
spirv_builder_function(&ctx.builder, entry_point, type_void,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue