mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-09 23:08:18 +02:00
r300: disable HiZ for PIPE_FUNC_ALWAYS
AMD docs support this:
R5xx Acceleration v1.5 says safest handling for ZFUNC changes is to disable
HiZ except specific LESS/LEQUAL and GREATER/GEQUAL transitions.
ATI OpenGL Programming and Optimization Guide advises avoiding ALWAYS when
trying to benefit from HiZ so that would imply fglrx also disables HiZ
there.
On RV530 this fixes the following dEQPs:
dEQP-GLES2.functional.fragment_ops.interaction.basic_shader.43
dEQP-GLES2.functional.fragment_ops.interaction.basic_shader.74
Fixes: 12dcbd5954 ("r300g: enable Hyper-Z by default on r500")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8093
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39914>
This commit is contained in:
parent
55bab89951
commit
b0f019f8cf
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue