diff --git a/.pick_status.json b/.pick_status.json index 6cc44186e6d..4e7c23d8763 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -3874,7 +3874,7 @@ "description": "r300: disable HiZ for PIPE_FUNC_ALWAYS", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "12dcbd5954676ee32604d82cacbf9a4259967e13", "notes": null diff --git a/src/gallium/drivers/r300/r300_hyperz.c b/src/gallium/drivers/r300/r300_hyperz.c index 8d3eb16f413..6e9cd800c0d 100644 --- a/src/gallium/drivers/r300/r300_hyperz.c +++ b/src/gallium/drivers/r300/r300_hyperz.c @@ -106,6 +106,10 @@ static bool r300_hiz_allowed(struct r300_context *r300) /* if depth func is NOTEQUAL */ if (dsa->dsa.depth_func == PIPE_FUNC_NOTEQUAL) return false; + + /* R5xx docs advise avoiding HiZ with ALWAYS comparisons. */ + if (dsa->dsa.depth_func == PIPE_FUNC_ALWAYS) + return false; } return true; }