mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 17:00:13 +01:00
radv: remove unnecessary NULL check when creating PS epilogs
It's already checked in the caller. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37087>
This commit is contained in:
parent
d771f2c462
commit
bc71787ea3
1 changed files with 14 additions and 17 deletions
|
|
@ -6141,26 +6141,23 @@ lookup_ps_epilog(struct radv_cmd_buffer *cmd_buffer)
|
|||
}
|
||||
|
||||
state.alpha_to_one = d->vk.ms.alpha_to_one_enable;
|
||||
state.colors_written = ps->info.ps.colors_written;
|
||||
|
||||
if (ps) {
|
||||
state.colors_written = ps->info.ps.colors_written;
|
||||
if (ps->info.ps.exports_mrtz_via_epilog) {
|
||||
const bool export_z_stencil_samplemask =
|
||||
ps->info.ps.writes_z || ps->info.ps.writes_stencil || ps->info.ps.writes_sample_mask;
|
||||
|
||||
if (ps->info.ps.exports_mrtz_via_epilog) {
|
||||
const bool export_z_stencil_samplemask =
|
||||
ps->info.ps.writes_z || ps->info.ps.writes_stencil || ps->info.ps.writes_sample_mask;
|
||||
state.export_depth = ps->info.ps.writes_z;
|
||||
state.export_stencil = ps->info.ps.writes_stencil;
|
||||
state.export_sample_mask = ps->info.ps.writes_sample_mask;
|
||||
|
||||
state.export_depth = ps->info.ps.writes_z;
|
||||
state.export_stencil = ps->info.ps.writes_stencil;
|
||||
state.export_sample_mask = ps->info.ps.writes_sample_mask;
|
||||
|
||||
if (d->vk.ms.alpha_to_coverage_enable) {
|
||||
/* We need coverage-to-mask when alpha-to-one is also enabled. On GFX11, it's always
|
||||
* enabled if there's a mrtz export.
|
||||
*/
|
||||
const bool coverage_to_mask =
|
||||
d->vk.ms.alpha_to_one_enable || (pdev->info.gfx_level >= GFX11 && export_z_stencil_samplemask);
|
||||
state.alpha_to_coverage_via_mrtz = coverage_to_mask;
|
||||
}
|
||||
if (d->vk.ms.alpha_to_coverage_enable) {
|
||||
/* We need coverage-to-mask when alpha-to-one is also enabled. On GFX11, it's always
|
||||
* enabled if there's a mrtz export.
|
||||
*/
|
||||
const bool coverage_to_mask =
|
||||
d->vk.ms.alpha_to_one_enable || (pdev->info.gfx_level >= GFX11 && export_z_stencil_samplemask);
|
||||
state.alpha_to_coverage_via_mrtz = coverage_to_mask;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue