pvr: dynamic depth bias support
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com> Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
This commit is contained in:
committed by
Marge Bot
parent
22c67a3c4e
commit
66d5815919
@@ -5132,6 +5132,19 @@ setup_pds_coeff_program(struct pvr_cmd_buffer *const cmd_buffer,
|
||||
&douti_src);
|
||||
}
|
||||
|
||||
if (program->dout_z_iterator_offset != ~0u) {
|
||||
struct ROGUE_PDSINST_DOUT_FIELDS_DOUTI_SRC douti_src;
|
||||
ROGUE_PDSINST_DOUT_FIELDS_DOUTI_SRC_unpack(
|
||||
&pds_coeff_program_buffer[program->dout_z_iterator_offset],
|
||||
&douti_src);
|
||||
|
||||
douti_src.depthbias = dynamic_state->rs.depth_bias.enable;
|
||||
|
||||
ROGUE_PDSINST_DOUT_FIELDS_DOUTI_SRC_pack(
|
||||
&pds_coeff_program_buffer[program->dout_z_iterator_offset],
|
||||
&douti_src);
|
||||
}
|
||||
|
||||
/* FIXME: Figure out the define for alignment of 16. */
|
||||
return pvr_cmd_buffer_upload_pds(
|
||||
cmd_buffer,
|
||||
|
||||
Reference in New Issue
Block a user