mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
glsl: set PSIZ bit in outputs_written when injecting a 1.0 psiz write
gather_info may not be called before something checks this value cc: mesa-stable Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28463>
This commit is contained in:
parent
f090f7186b
commit
056fe1dc6a
1 changed files with 2 additions and 0 deletions
|
|
@ -1055,6 +1055,8 @@ gl_nir_add_point_size(nir_shader *nir)
|
|||
nir_store_deref(&b, deref, nir_imm_float(&b, 1.0), BITFIELD_BIT(0));
|
||||
}
|
||||
|
||||
nir->info.outputs_written |= VARYING_BIT_PSIZ;
|
||||
|
||||
/* We always modify the entrypoint */
|
||||
nir_metadata_preserve(impl, nir_metadata_block_index | nir_metadata_dominance);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue