From 52a86e262f73db104f1a0852d15139c20fd22ebc Mon Sep 17 00:00:00 2001 From: Tuomas Tonteri Date: Tue, 25 Jun 2024 16:56:13 +0300 Subject: [PATCH] Change batched to use ustringhash_pod instead of ustring_pod (2). Signed-off-by: Tuomas Tonteri --- src/liboslexec/wide/wide_opcolor.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/liboslexec/wide/wide_opcolor.cpp b/src/liboslexec/wide/wide_opcolor.cpp index 8b7514123..3c5564010 100644 --- a/src/liboslexec/wide/wide_opcolor.cpp +++ b/src/liboslexec/wide/wide_opcolor.cpp @@ -281,9 +281,9 @@ __OSL_MASKED_OP2(prepend_color_from, Wv, Ws)(void* bsg_, void* c_, void* from_, const ColorSystem& cs = cs_from_bsg(bsg_); ShadingContext* ctx = context_from_bsg(bsg_); - Wide wFrom(from_); + Wide wFrom(from_); foreach_unique(wFrom, Mask(mask_value), - [=, &cs](const ustring& from, Mask from_mask) { + [=, &cs](const ustringhash& from, Mask from_mask) { // Reuse the uniform from implementation by restricting results to // just the lanes with the same value of "from". Masked wsub_result(c_, from_mask); @@ -305,14 +305,14 @@ namespace { template OSL_NOINLINE void -wide_transformc(const ColorSystem cs, ustring fromspace, ustring tospace, +wide_transformc(const ColorSystem cs, ustringhash fromspace, ustringhash tospace, Masked wOutput, Wide wInput, ShadingContext* context); // NOTE: keep implementation as mirror of ColorSystem::transformc template void -wide_transformc(const ColorSystem cs, ustring fromspace, ustring tospace, +wide_transformc(const ColorSystem cs, ustringhash fromspace, ustringhash tospace, Masked wOutput, Wide wInput, ShadingContext* context) { @@ -479,8 +479,8 @@ __OSL_MASKED_OP3(transform_color, Wv, s, const ColorSystem& cs = cs_from_bsg(bsg_); ShadingContext* ctx = context_from_bsg(bsg_); - ustring from = ustring_from(from_); - ustring to = ustring_from(to_); + ustringhash from = ustringhash_from(from_); + ustringhash to = ustringhash_from(to_); if (Cout_derivs) { if (Cin_derivs) { @@ -517,8 +517,8 @@ __OSL_OP3(transform_color, v, s, s)(void* bsg_, void* Cin, int Cin_derivs, const ColorSystem& cs = cs_from_bsg(bsg_); ShadingContext* ctx = context_from_bsg(bsg_); - ustring from = ustring_from(from_); - ustring to = ustring_from(to_); + ustringhash from = ustringhash_from(from_); + ustringhash to = ustringhash_from(to_); if (Cout_derivs) { if (Cin_derivs) {