mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
hk: fix z bias perf regression
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32434>
This commit is contained in:
parent
57447cbb82
commit
4386150ab3
1 changed files with 6 additions and 1 deletions
|
|
@ -3203,8 +3203,13 @@ hk_flush_gfx_state(struct hk_cmd_buffer *cmd, uint32_t draw_id,
|
|||
* Proton never changes it within a render pass, but we technically need to
|
||||
* handle the switch regardless. Do so early since `cs` will be invalidated
|
||||
* if we need to split the render pass to switch representation mid-frame.
|
||||
*
|
||||
* Note we only do this dance with depth bias is actually enabled to avoid
|
||||
* senseless control stream splits with DXVK.
|
||||
*/
|
||||
if (IS_DIRTY(RS_DEPTH_BIAS_FACTORS)) {
|
||||
if ((IS_DIRTY(RS_DEPTH_BIAS_FACTORS) || IS_DIRTY(RS_DEPTH_BIAS_ENABLE)) &&
|
||||
dyn->rs.depth_bias.enable) {
|
||||
|
||||
bool dbias_is_int =
|
||||
(dyn->rs.depth_bias.representation ==
|
||||
VK_DEPTH_BIAS_REPRESENTATION_LEAST_REPRESENTABLE_VALUE_FORCE_UNORM_EXT) ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue