mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
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:
parent
c8ac01af33
commit
41d0a81c2a
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue