Skip to content
Snippets Groups Projects
Commit 6e705081 authored by Rhys Perry's avatar Rhys Perry Committed by Marge Bot
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>
parent 0f8ef37f
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