Fix sksl spirv subpassLoad.
Bug: skia:10409 Change-Id: If8fba41470eddc72b397f46e4e0bb7bd7f4a3d5d Reviewed-on: https://skia-review.googlesource.com/c/skia/+/315651 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
This commit is contained in:
parent
27e7f77212
commit
cf1a4f5012
@ -851,9 +851,9 @@ SpvId SPIRVCodeGenerator::writeSpecialIntrinsic(const FunctionCall& c, SpecialIn
|
||||
case kSubpassLoad_SpecialIntrinsic: {
|
||||
SpvId img = this->writeExpression(*c.fArguments[0], out);
|
||||
std::vector<std::unique_ptr<Expression>> args;
|
||||
args.emplace_back(new FloatLiteral(fContext, -1, 0.0));
|
||||
args.emplace_back(new FloatLiteral(fContext, -1, 0.0));
|
||||
Constructor ctor(-1, *fContext.fFloat2_Type, std::move(args));
|
||||
args.emplace_back(new IntLiteral(fContext, -1, 0));
|
||||
args.emplace_back(new IntLiteral(fContext, -1, 0));
|
||||
Constructor ctor(-1, *fContext.fInt2_Type, std::move(args));
|
||||
SpvId coords = this->writeConstantVector(ctor);
|
||||
if (1 == c.fArguments.size()) {
|
||||
this->writeInstruction(SpvOpImageRead,
|
||||
|
File diff suppressed because one or more lines are too long
@ -252,8 +252,8 @@ half4 sample($gsampler2DRect sampler, float3 P);
|
||||
|
||||
// Currently we do not support the generic types of loading subpassInput so we have some explicit
|
||||
// versions that we currently use
|
||||
float4 subpassLoad(subpassInput subpass);
|
||||
float4 subpassLoad(subpassInputMS subpass, int sample);
|
||||
half4 subpassLoad(subpassInput subpass);
|
||||
half4 subpassLoad(subpassInputMS subpass, int sample);
|
||||
|
||||
half4 sample($gsampler1D sampler, float2 P);
|
||||
half4 sample($gsampler1D sampler, float2 P, float bias);
|
||||
|
Loading…
Reference in New Issue
Block a user