Fix #156474, #156473: Cycles wrong mipmap with some types of texture coords

Creating a texture coordinate by combining a UV Map with a white noise
texture did not properly handle that one provides derivatives while the
other does not. It would read from wrong or uninitialized stack memory,
now make sure that is zeroed.

Pull Request: https://projects.blender.org/blender/blender/pulls/156596
This commit is contained in:
Brecht Van Lommel 2026-04-01 17:56:58 +02:00 • committed by Brecht Van Lommel
parent ba6a8ca4da
commit 329e8a5cfc
9 changed files with 42 additions and 12 deletions

View file

@ -51,6 +51,8 @@ BLOCKLIST_OSL_ALL = BLOCKLIST_OSL_LIMITED + [
'render_passes_.*.blend',
# OSL can not specify parameters when reading attribute, which we need for stochastic sampling
'volume_tricubic_interpolation.blend',
# Test specifically for how SVM deals with missing derivatives, which OSL has.
"image_mipmap_incomplete_derivs.blend"
]
BLOCKLIST_OPTIX = [