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:
committed by
Marge Bot
parent
f090f7186b
commit
056fe1dc6a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user