mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 04:50:35 +01:00
radeonsi: set DEPTH_BEFORE_SHADER based on FS_EARLY_DEPTH_STENCIL
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
0ffcc318e6
commit
4de25fa7b0
1 changed files with 3 additions and 0 deletions
|
|
@ -1154,6 +1154,9 @@ static void *si_create_shader_selector(struct pipe_context *ctx,
|
|||
break;
|
||||
}
|
||||
|
||||
if (sel->info.properties[TGSI_PROPERTY_FS_EARLY_DEPTH_STENCIL])
|
||||
sel->db_shader_control |= S_02880C_DEPTH_BEFORE_SHADER(1);
|
||||
|
||||
/* Compile the main shader part for use with a prolog and/or epilog. */
|
||||
if (sel->type != PIPE_SHADER_GEOMETRY &&
|
||||
!sscreen->use_monolithic_shaders) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue