radv: remove useless DISABLE_{ZMASK,SMEM}_EXPCLEAR_OPTIMIZATION state

This has no effect without enabling EXPCLEAR.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12326>
This commit is contained in:
Samuel Pitoiset
2021-08-11 13:35:13 +02:00
parent 98d10eed48
commit e4e2d45cc6
3 changed files with 0 additions and 8 deletions

View File

@@ -636,11 +636,9 @@ create_depthstencil_pipeline(struct radv_device *device, VkImageAspectFlags aspe
if (aspects & VK_IMAGE_ASPECT_DEPTH_BIT) { if (aspects & VK_IMAGE_ASPECT_DEPTH_BIT) {
extra.db_depth_clear = index == DEPTH_CLEAR_SLOW ? false : true; extra.db_depth_clear = index == DEPTH_CLEAR_SLOW ? false : true;
extra.db_depth_disable_expclear = index == DEPTH_CLEAR_FAST ? true : false;
} }
if (aspects & VK_IMAGE_ASPECT_STENCIL_BIT) { if (aspects & VK_IMAGE_ASPECT_STENCIL_BIT) {
extra.db_stencil_clear = index == DEPTH_CLEAR_SLOW ? false : true; extra.db_stencil_clear = index == DEPTH_CLEAR_SLOW ? false : true;
extra.db_stencil_disable_expclear = index == DEPTH_CLEAR_FAST ? true : false;
} }
result = result =
create_pipeline(device, radv_render_pass_from_handle(render_pass), samples, vs_nir, fs_nir, create_pipeline(device, radv_render_pass_from_handle(render_pass), samples, vs_nir, fs_nir,

View File

@@ -4194,10 +4194,6 @@ radv_pipeline_generate_depth_stencil_state(struct radeon_cmdbuf *ctx_cs,
db_render_control |= S_028000_RESUMMARIZE_ENABLE(extra->resummarize_enable); db_render_control |= S_028000_RESUMMARIZE_ENABLE(extra->resummarize_enable);
db_render_control |= S_028000_DEPTH_COMPRESS_DISABLE(extra->depth_compress_disable); db_render_control |= S_028000_DEPTH_COMPRESS_DISABLE(extra->depth_compress_disable);
db_render_control |= S_028000_STENCIL_COMPRESS_DISABLE(extra->stencil_compress_disable); db_render_control |= S_028000_STENCIL_COMPRESS_DISABLE(extra->stencil_compress_disable);
db_render_override2 |=
S_028010_DISABLE_ZMASK_EXPCLEAR_OPTIMIZATION(extra->db_depth_disable_expclear);
db_render_override2 |=
S_028010_DISABLE_SMEM_EXPCLEAR_OPTIMIZATION(extra->db_stencil_disable_expclear);
} }
db_render_override |= S_02800C_FORCE_HIS_ENABLE0(V_02800C_FORCE_DISABLE) | db_render_override |= S_02800C_FORCE_HIS_ENABLE0(V_02800C_FORCE_DISABLE) |

View File

@@ -1828,8 +1828,6 @@ struct radv_graphics_pipeline_create_info {
bool use_rectlist; bool use_rectlist;
bool db_depth_clear; bool db_depth_clear;
bool db_stencil_clear; bool db_stencil_clear;
bool db_depth_disable_expclear;
bool db_stencil_disable_expclear;
bool depth_compress_disable; bool depth_compress_disable;
bool stencil_compress_disable; bool stencil_compress_disable;
bool resummarize_enable; bool resummarize_enable;