pan/mdg: Fix perspective combination
It's not enough to multiply by a .w reciprocal, we have to be taking the reciprocal of the thing we're actually multiplying against. Fixes incorrect rendering in Manhattan. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6525>
This commit is contained in:

committed by
Marge Bot

parent
c8ac01af33
commit
41d0a81c2a
@@ -88,6 +88,7 @@ midgard_opt_combine_projection(compiler_context *ctx, midgard_block *block)
|
||||
}
|
||||
|
||||
if (!frcp_found) continue;
|
||||
if (frcp_from != ins->src[0]) continue;
|
||||
if (frcp_component != COMPONENT_W && frcp_component != COMPONENT_Z) continue;
|
||||
if (!mir_single_use(ctx, frcp)) continue;
|
||||
|
||||
|
Reference in New Issue
Block a user