Skip to content
Snippets Groups Projects
Commit d4880d75 authored by Rhys Perry's avatar Rhys Perry Committed by Eric Engestrom
Browse files

aco: set constant_data_offset correctly in the case of merged shaders


setup_nir() is done for all shaders before any of them are selected, so
constant_data_offset could be incorrect for the first shader.

Fixes incorrect geometry in Mafia III and Max Payne 3.

Signed-off-by: default avatarRhys Perry <pendingchaos02@gmail.com>
Reviewed-by: default avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
Cc: mesa-stable
Closes: mesa/mesa#2768
Part-of: <mesa/mesa!6205>
(cherry picked from commit 6e705081)
parent f9c5c668
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment