Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RS::get_texture_info make robust to empty shaderglobals param #1731

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Sep 19, 2023

The unconditional dereferencing of the sg pointer is only necessary if texture_thread_info is not supplied. And for that matter, the texture_thread_info is only necessary if the texture_handle is not supplied.

So rearranging the nesting skips a bunch of the work, and the need for the caller to supply the sg if they have the texture_thread_info, nor for them to need texture_thread_info if they already have the handle.

Copy link
Contributor

@AlexMWells AlexMWells left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The unconditional dereferencing of the sg pointer is only necessary if
texture_thread_info is not supplied. And for that matter, the
texture_thread_info is only necessary if the texture_handle is not
supplied.

So rearranging the nesting skips a bunch of the work, and the need
for the caller to supply the sg if they have the texture_thread_info,
nor for them to need texture_thread_info if they already have the
handle.

Signed-off-by: Larry Gritz <[email protected]>
@lgritz lgritz merged commit f00da4f into AcademySoftwareFoundation:main Sep 26, 2023
@lgritz lgritz deleted the lg-rendserv branch September 27, 2023 23:50
chellmuth pushed a commit to chellmuth/OpenShadingLanguage that referenced this pull request Sep 6, 2024
This won't be picked up by the platforms yet, they are still using
1.13.5.x for 2023.10 (as well as still OIIO 2.6.0.x, which is too old
for this OSL release). So really the only client for this build is
likely Arnold.

Highlights:

* Raise OpenImageIO to 2.6.1.0.
* RS::get_texture_info make robust to empty shaderglobals param (AcademySoftwareFoundation#1731)
* LLVM opaque pointers support (AcademySoftwareFoundation#1728)
* LLVM new pass manager support (AcademySoftwareFoundation#1729)
* LLVM 16 and 17 support (AcademySoftwareFoundation#1730)
* fix: SymOverrideInfo bitfields should be the same type (AcademySoftwareFoundation#1745)
* fix: batched pointcloud if "index" is not passed (AcademySoftwareFoundation#1753)
* api: Ustringhash phase 3 (AcademySoftwareFoundation#1732)
* fix: Fix NVPTX TargetMachine leak, etc. (AcademySoftwareFoundation#1763)
* feat(api): Add API for building interpolated getter free functions. (AcademySoftwareFoundation#1765)
* build: add options to use static Cuda libraries (AcademySoftwareFoundation#1772)
* build(deps): Initial support for LLVM-18 (AcademySoftwareFoundation#1773)
* fix: Mute partio error prints (AcademySoftwareFoundation#1774)
* fix: calculatenormal needs fliphandedness (AcademySoftwareFoundation#1783)
* fix: Print closure missing error message at compile time instead of run time.  (AcademySoftwareFoundation#1781)
* fix: GPU interpolated param initialization (AcademySoftwareFoundation#1791)
* oslquery: Simplify include and link needs (AcademySoftwareFoundation#1787)
* Make isconnected() work with downstream renderer "connections." (AcademySoftwareFoundation#1782)

Also along for the ride:

* Remove the `blah-platform/=1.0` preamble, no longer needed.
* Stop building for deprecated Nuke 12 and 13 platforms.
* Raise cmake build version to 3.24

See merge request spi/dev/3rd-party/osl-feedstock!57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants