AcademySoftwareFoundation / OpenShadingLanguage

Advanced shading language for production GI renderers
BSD 3-Clause "New" or "Revised" License
2.09k stars 357 forks source link

testrender: Fix wrong offset of MxSheen param #1751

Closed rasmusbonnedal closed 10 months ago

rasmusbonnedal commented 10 months ago

Description

Fix a typo in the MxSheen builtin closure parameter for testrender.

Tests

I think this bug could read or write outside the intended struct memory when a MxSheen closure is used but I haven't tried to provoke this for a test.

Checklist

Test results

All tests passed except osl-imageio*. But they failed on main branch as well for me so I think I'm doing something wrong. I don't think they are relevant to this fix.

99% tests passed, 3 tests failed out of 623

Label Time Summary:
batchregression    =  35.15 sec*proc (3 tests)
noise              =  34.52 sec*proc (48 tests)
render             =  96.00 sec*proc (22 tests)
texture            =  26.50 sec*proc (54 tests)

Total Test time (real) =  20.50 sec

The following tests FAILED:
        367 - osl-imageio (Failed)
        368 - osl-imageio.opt (Failed)
        369 - osl-imageio.opt.rs_bitcode (Failed)

All three tests failed in the same way:

Output was:
--------
Compiled ramp.osl -> ramp.oso
oiiotool ERROR: read : File does not exist: "ramp.oso?RES=64"
Full command line was:
> oiiotool ramp.oso?RES=64 -d uint8 -o ramp-oso-default.tif
linux-foundation-easycla[bot] commented 10 months ago

CLA Signed

The committers listed above are authorized under a signed CLA.

lgritz commented 10 months ago

The failures don't appear to be related to your changes. Merging.